patch-2.1.73 linux/include/asm-mips/atomic.h
Next file: linux/include/asm-mips/bitops.h
Previous file: linux/include/asm-mips/asmmacro.h
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Tue Dec 16 12:45:55 1997
- Orig file:
v2.1.72/linux/include/asm-mips/atomic.h
- Orig date:
Mon Jul 7 08:18:55 1997
diff -u --recursive --new-file v2.1.72/linux/include/asm-mips/atomic.h linux/include/asm-mips/atomic.h
@@ -11,7 +11,7 @@
*
* Copyright (C) 1996 by Ralf Baechle
*
- * $Id: atomic.h,v 1.2 1997/06/25 19:10:33 ralf Exp $
+ * $Id: atomic.h,v 1.2 1997/06/20 03:05:12 ralf Exp $
*/
#ifndef __ASM_MIPS_ATOMIC_H
#define __ASM_MIPS_ATOMIC_H
@@ -99,7 +99,7 @@
* on us. We need to use _exactly_ the address the user gave us,
* not some alias that contains the same information.
*/
-#define __atomic_fool_gcc(x) (*(struct { int a[100]; } *)x)
+#define __atomic_fool_gcc(x) (*(volatile struct { int a[100]; } *)x)
extern __inline__ void atomic_add(int i, volatile atomic_t * v)
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov