patch-2.4.21 linux-2.4.21/include/asm-mips64/system.h
Next file: linux-2.4.21/include/asm-parisc/atomic.h
Previous file: linux-2.4.21/include/asm-mips64/processor.h
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
2003-06-13 07:51:38.000000000 -0700
- Orig file:
linux-2.4.20/include/asm-mips64/system.h
- Orig date:
2002-11-28 15:53:15.000000000 -0800
diff -urN linux-2.4.20/include/asm-mips64/system.h linux-2.4.21/include/asm-mips64/system.h
@@ -109,6 +109,8 @@
: /* no inputs */ \
: "memory")
+#define __save_and_sti(x) do { __save_flags(x); __sti(); } while(0);
+
__asm__(".macro\t__restore_flags flags\n\t"
".set\tnoreorder\n\t"
".set\tnoat\n\t"
@@ -147,6 +149,7 @@
#define save_flags(x) ((x)=__global_save_flags())
#define restore_flags(x) __global_restore_flags(x)
#define save_and_cli(x) do { save_flags(x); cli(); } while(0)
+#define save_and_sti(x) do { save_flags(x); sti(); } while(0)
#else
@@ -155,11 +158,13 @@
#define save_flags(x) __save_flags(x)
#define restore_flags(x) __restore_flags(x)
#define save_and_cli(x) __save_and_cli(x)
+#define save_and_sti(x) __save_and_sti(x)
#endif /* CONFIG_SMP */
/* For spinlocks etc */
#define local_irq_save(x) __save_and_cli(x)
+#define local_irq_set(x) __save_and_sti(x)
#define local_irq_restore(x) __restore_flags(x)
#define local_irq_disable() __cli()
#define local_irq_enable() __sti()
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)