patch-2.4.0-test3 linux/include/asm-arm/system.h

Next file: linux/include/asm-i386/bitops.h
Previous file: linux/include/asm-arm/socket.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test2/linux/include/asm-arm/system.h linux/include/asm-arm/system.h
@@ -381,7 +381,6 @@
 
 #define tas(ptr) (xchg((ptr),1))
 
-extern void arm_malalignedptr(const char *, void *, volatile void *);
 extern asmlinkage void __backtrace(void);
 
 /*
@@ -408,6 +407,24 @@
 		last = __switch_to(prev,next);	\
 		mb();				\
 	} while (0)
+
+#endif
+
+/* For spinlocks etc */
+#define local_irq_save(x)	__save_flags_cli(x)
+#define local_irq_restore(x)	__restore_flags(x)
+#define local_irq_disable()	__cli()
+#define local_irq_enable()	__sti()
+
+#ifdef CONFIG_SMP
+#error SMP not supported
+#else
+
+#define cli()			__cli()
+#define sti()			__sti()
+#define save_flags(x)		__save_flags(x)
+#define restore_flags(x)	__restore_flags(x)
+#define save_flags_cli(x)	__save_flags_cli(x)
 
 #endif
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)