summaryrefslogtreecommitdiffstats
path: root/arch/frv/include/asm/uaccess.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2010-04-06 14:35:09 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2010-04-07 08:38:05 -0700
commit08dc179b9b00cfbed006ae6f5d0e471ef79dc69c (patch)
treee16cc9ee894fdd78e6a427abc68060067c34f0fc /arch/frv/include/asm/uaccess.h
parentea56f411ec2d4d8689eb7f3bcd24e860acf87c47 (diff)
downloadop-kernel-dev-08dc179b9b00cfbed006ae6f5d0e471ef79dc69c.zip
op-kernel-dev-08dc179b9b00cfbed006ae6f5d0e471ef79dc69c.tar.gz
frv: fix kernel/user segment handling in NOMMU mode
In NOMMU mode, the FRV segment handling is broken because KERNEL_DS == USER_DS. This causes tests of the following sort: /* don't pin down non-user-based iovecs */ if (segment_eq(get_fs(), KERNEL_DS)) return NULL; to malfunction. To fix this, make USER_DS the top of RAM instead of the top of the non-IO address space, and make KERNEL_DS one more than the top of the non-IO address space. Also get rid of FRV's __addr_ok() as nothing uses it. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/frv/include/asm/uaccess.h')
-rw-r--r--arch/frv/include/asm/uaccess.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/frv/include/asm/uaccess.h b/arch/frv/include/asm/uaccess.h
index 53650c9..0b67ec5 100644
--- a/arch/frv/include/asm/uaccess.h
+++ b/arch/frv/include/asm/uaccess.h
@@ -27,8 +27,6 @@
#define VERIFY_READ 0
#define VERIFY_WRITE 1
-#define __addr_ok(addr) ((unsigned long)(addr) < get_addr_limit())
-
/*
* check that a range of addresses falls within the current address limit
*/
OpenPOWER on IntegriCloud