diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-06-03 06:37:35 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-07-28 05:10:29 -0400 |
commit | 85247285ea6f6e2087193b2a720404690e9cb1b3 (patch) | |
tree | 335c4114e22cb3d403cddc2b0ed7774daa1bd2bf /include/asm-sh | |
parent | 66dfe18114839a7297f56f43f03125f4121de79b (diff) |
sh: Use the common segment definitions for the _64 uaccess routines.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh')
-rw-r--r-- | include/asm-sh/uaccess_64.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/asm-sh/uaccess_64.h b/include/asm-sh/uaccess_64.h index a9b68d094844..5833754dc747 100644 --- a/include/asm-sh/uaccess_64.h +++ b/include/asm-sh/uaccess_64.h | |||
@@ -26,25 +26,6 @@ | |||
26 | #define VERIFY_READ 0 | 26 | #define VERIFY_READ 0 |
27 | #define VERIFY_WRITE 1 | 27 | #define VERIFY_WRITE 1 |
28 | 28 | ||
29 | /* | ||
30 | * The fs value determines whether argument validity checking should be | ||
31 | * performed or not. If get_fs() == USER_DS, checking is performed, with | ||
32 | * get_fs() == KERNEL_DS, checking is bypassed. | ||
33 | * | ||
34 | * For historical reasons (Data Segment Register?), these macros are misnamed. | ||
35 | */ | ||
36 | |||
37 | #define MAKE_MM_SEG(s) ((mm_segment_t) { (s) }) | ||
38 | |||
39 | #define KERNEL_DS MAKE_MM_SEG(0xFFFFFFFF) | ||
40 | #define USER_DS MAKE_MM_SEG(0x80000000) | ||
41 | |||
42 | #define get_ds() (KERNEL_DS) | ||
43 | #define get_fs() (current_thread_info()->addr_limit) | ||
44 | #define set_fs(x) (current_thread_info()->addr_limit=(x)) | ||
45 | |||
46 | #define segment_eq(a,b) ((a).seg == (b).seg) | ||
47 | |||
48 | #define __addr_ok(addr) ((unsigned long)(addr) < (current_thread_info()->addr_limit.seg)) | 29 | #define __addr_ok(addr) ((unsigned long)(addr) < (current_thread_info()->addr_limit.seg)) |
49 | 30 | ||
50 | /* | 31 | /* |