Commit 93b5097f authored by Al Viro's avatar Al Viro

kill __kernel_ds_p off

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 81029b1f
...@@ -32,7 +32,6 @@ typedef struct { ...@@ -32,7 +32,6 @@ typedef struct {
#define get_ds() (KERNEL_DS) #define get_ds() (KERNEL_DS)
#define get_fs() (__current_thread_info->addr_limit) #define get_fs() (__current_thread_info->addr_limit)
#define segment_eq(a, b) ((a).seg == (b).seg) #define segment_eq(a, b) ((a).seg == (b).seg)
#define __kernel_ds_p() segment_eq(get_fs(), KERNEL_DS)
#define get_addr_limit() (get_fs().seg) #define get_addr_limit() (get_fs().seg)
#define set_fs(_x) \ #define set_fs(_x) \
......
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
#define get_ds() (KERNEL_DS) #define get_ds() (KERNEL_DS)
#define get_fs() (current_thread_info()->addr_limit) #define get_fs() (current_thread_info()->addr_limit)
#define set_fs(x) (current_thread_info()->addr_limit = (x)) #define set_fs(x) (current_thread_info()->addr_limit = (x))
#define __kernel_ds_p() (current_thread_info()->addr_limit.seg == 0x9FFFFFFF)
#define segment_eq(a, b) ((a).seg == (b).seg) #define segment_eq(a, b) ((a).seg == (b).seg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment