patch-2.2.0-pre2 linux/include/asm-i386/uaccess.h
Next file: linux/include/asm-ppc/checksum.h
Previous file: linux/include/asm-i386/timex.h
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Wed Dec 30 22:00:23 1998
- Orig file:
v2.2.0-pre1/linux/include/asm-i386/uaccess.h
- Orig date:
Mon Dec 28 15:00:53 1998
diff -u --recursive --new-file v2.2.0-pre1/linux/include/asm-i386/uaccess.h linux/include/asm-i386/uaccess.h
@@ -4,6 +4,7 @@
/*
* User space memory access functions
*/
+#include <linux/config.h>
#include <linux/sched.h>
#include <asm/page.h>
@@ -44,7 +45,7 @@
:"1" (addr),"g" (size),"g" (current->addr_limit.seg)); \
flag; })
-#if CPU > 386
+#ifdef CONFIG_WP_WORKS_OK
#define access_ok(type,addr,size) (__range_ok(addr,size) == 0)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov