patch-1.3.39 linux/include/asm-i386/bitops.h
Next file: linux/include/asm-i386/floppy.h
Previous file: linux/include/asm-alpha/system.h
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Wed Nov 8 07:06:25 1995
- Orig file:
v1.3.38/linux/include/asm-i386/bitops.h
- Orig date:
Wed Nov 8 07:11:41 1995
diff -u --recursive --new-file v1.3.38/linux/include/asm-i386/bitops.h linux/include/asm-i386/bitops.h
@@ -24,6 +24,7 @@
*/
struct __dummy { unsigned long a[100]; };
#define ADDR (*(struct __dummy *) addr)
+#define CONST_ADDR (*(const struct __dummy *) addr)
extern __inline__ int set_bit(int nr, void * addr)
{
@@ -68,7 +69,7 @@
__asm__ __volatile__("btl %2,%1\n\tsbbl %0,%0"
:"=r" (oldbit)
- :"m" (ADDR),"ir" (nr));
+ :"m" (CONST_ADDR),"ir" (nr));
return oldbit;
}
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