patch-2.3.29 linux/include/asm-arm/arch-cl7500/system.h
Next file: linux/include/asm-arm/arch-cl7500/time.h
Previous file: linux/include/asm-arm/arch-cl7500/shmparam.h
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Tue Nov 23 22:23:11 1999
- Orig file:
v2.3.28/linux/include/asm-arm/arch-cl7500/system.h
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.3.28/linux/include/asm-arm/arch-cl7500/system.h linux/include/asm-arm/arch-cl7500/system.h
@@ -0,0 +1,27 @@
+/*
+ * linux/include/asm-arm/arch-cl7500/system.h
+ *
+ * Copyright (c) 1999 Nexus Electronics Ltd.
+ */
+#ifndef __ASM_ARCH_SYSTEM_H
+#define __ASM_ARCH_SYSTEM_H
+
+#include <asm/iomd.h>
+
+#define arch_reset(mode) { \
+ outb (0, IOMD_ROMCR0); \
+ cli(); \
+ __asm__ __volatile__("msr spsr, r1;" \
+ "mcr p15, 0, %0, c1, c0, 0;" \
+ "movs pc, #0" \
+ : \
+ : "r" (cpu_reset())); \
+ }
+
+/*
+ * We can wait for an interrupt...
+ */
+#define proc_idle() \
+ outb(0, IOMD_SUSMODE)
+
+#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)