From: Paul Mundt Date: Tue, 3 Jun 2008 10:37:35 +0000 (+0900) Subject: sh: Use the common segment definitions for the _64 uaccess routines. X-Git-Tag: v2.6.27-rc1~29^2~59 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=85247285ea6f6e2087193b2a720404690e9cb1b3;p=~emulex%2Finfiniband.git sh: Use the common segment definitions for the _64 uaccess routines. Signed-off-by: Paul Mundt --- diff --git a/include/asm-sh/uaccess_64.h b/include/asm-sh/uaccess_64.h index a9b68d09484..5833754dc74 100644 --- a/include/asm-sh/uaccess_64.h +++ b/include/asm-sh/uaccess_64.h @@ -26,25 +26,6 @@ #define VERIFY_READ 0 #define VERIFY_WRITE 1 -/* - * The fs value determines whether argument validity checking should be - * performed or not. If get_fs() == USER_DS, checking is performed, with - * get_fs() == KERNEL_DS, checking is bypassed. - * - * For historical reasons (Data Segment Register?), these macros are misnamed. - */ - -#define MAKE_MM_SEG(s) ((mm_segment_t) { (s) }) - -#define KERNEL_DS MAKE_MM_SEG(0xFFFFFFFF) -#define USER_DS MAKE_MM_SEG(0x80000000) - -#define get_ds() (KERNEL_DS) -#define get_fs() (current_thread_info()->addr_limit) -#define set_fs(x) (current_thread_info()->addr_limit=(x)) - -#define segment_eq(a,b) ((a).seg == (b).seg) - #define __addr_ok(addr) ((unsigned long)(addr) < (current_thread_info()->addr_limit.seg)) /*