patch-1.3.69 linux/include/asm-i386/smp.h

Next file: linux/include/asm-i386/string-486.h
Previous file: linux/fs/xiafs/file.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.68/linux/include/asm-i386/smp.h linux/include/asm-i386/smp.h
@@ -207,12 +207,12 @@
 
 extern __inline void apic_write(unsigned long reg, unsigned long v)
 {
-	*((unsigned long *)(apic_reg+reg))=v;
+	*((volatile unsigned long *)(apic_reg+reg))=v;
 }
 
 extern __inline unsigned long apic_read(unsigned long reg)
 {
-	return *((unsigned long *)(apic_reg+reg));
+	return *((volatile unsigned long *)(apic_reg+reg));
 }
 
 /*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this