patch-2.4.21 linux-2.4.21/include/asm-ia64/mmu.h
Next file: linux-2.4.21/include/asm-ia64/mmu_context.h
Previous file: linux-2.4.21/include/asm-ia64/mca_asm.h
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
2003-06-13 07:51:38.000000000 -0700
- Orig file:
linux-2.4.20/include/asm-ia64/mmu.h
- Orig date:
2000-12-29 14:07:23.000000000 -0800
diff -urN linux-2.4.20/include/asm-ia64/mmu.h linux-2.4.21/include/asm-ia64/mmu.h
@@ -1,7 +1,11 @@
#ifndef __MMU_H
#define __MMU_H
-/* Default "unsigned long" context */
-typedef unsigned long mm_context_t;
+/*
+ * Type for a context number. We declare it volatile to ensure proper ordering when it's
+ * accessed outside of spinlock'd critical sections (e.g., as done in activate_mm() and
+ * init_new_context()).
+ */
+typedef volatile unsigned long mm_context_t;
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)