patch-2.1.116 linux/include/asm-alpha/system.h

Next file: linux/include/asm-alpha/t2.h
Previous file: linux/include/asm-alpha/string.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.115/linux/include/asm-alpha/system.h linux/include/asm-alpha/system.h
@@ -100,13 +100,16 @@
 
 #define switch_to(prev,next) do { \
 	current = next; \
-	alpha_switch_to((unsigned long) &current->tss - 0xfffffc0000000000); \
+	alpha_switch_to((unsigned long) &current->tss - IDENT_ADDR); \
 } while (0)
 
 extern void alpha_switch_to(unsigned long pctxp);
 
 #define mb() \
 __asm__ __volatile__("mb": : :"memory")
+
+#define wmb() \
+__asm__ __volatile__("wmb": : :"memory")
 
 #define imb() \
 __asm__ __volatile__ ("call_pal %0" : : "i" (PAL_imb) : "memory")

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov