summaryrefslogtreecommitdiff
path: root/arch/nios2/include/asm/uaccess.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nios2/include/asm/uaccess.h')
-rw-r--r--arch/nios2/include/asm/uaccess.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nios2/include/asm/uaccess.h b/arch/nios2/include/asm/uaccess.h
index e83f831a76f9..a741abbed6fb 100644
--- a/arch/nios2/include/asm/uaccess.h
+++ b/arch/nios2/include/asm/uaccess.h
@@ -30,7 +30,7 @@
#define get_fs() (current_thread_info()->addr_limit)
#define set_fs(seg) (current_thread_info()->addr_limit = (seg))
-#define segment_eq(a, b) ((a).seg == (b).seg)
+#define uaccess_kernel() (get_fs().seg == KERNEL_DS.seg)
#define __access_ok(addr, len) \
(((signed long)(((long)get_fs().seg) & \