]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
sh: Use the common segment definitions for the _64 uaccess routines.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 3 Jun 2008 10:37:35 +0000 (19:37 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 28 Jul 2008 09:10:29 +0000 (18:10 +0900)
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/asm-sh/uaccess_64.h

index a9b68d094844eb7a93556edf8e7c0016d380f46c..5833754dc747d5389f43e36ee180edc3e27be452 100644 (file)
 #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))
 
 /*