forked from luck/tmp_suning_uos_patched
kill __kernel_ds_p off
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
81029b1f77
commit
93b5097fe5
|
@ -32,7 +32,6 @@ typedef struct {
|
|||
#define get_ds() (KERNEL_DS)
|
||||
#define get_fs() (__current_thread_info->addr_limit)
|
||||
#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 set_fs(_x) \
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
#define get_ds() (KERNEL_DS)
|
||||
#define get_fs() (current_thread_info()->addr_limit)
|
||||
#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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user