diff options
author | Helge Deller <deller@gmx.de> | 2021-09-09 12:47:00 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2021-09-09 22:53:09 +0200 |
commit | 671028728083e856e9919221b109e3b2cd2ccc49 (patch) | |
tree | 33ffc4a1a206297eab9314d3fd00eaba29417a32 /arch/parisc/include/asm/thread_info.h | |
parent | d97180ad68bdb7ee10f327205a649bc2f558741d (diff) | |
download | linux-671028728083e856e9919221b109e3b2cd2ccc49.tar.gz |
parisc: Implement __get/put_kernel_nofault()
Remove CONFIG_SET_FS from parisc, so we need to add __get_kernel_nofault() and __put_kernel_nofault(), define HAVE_GET_KERNEL_NOFAULT and remove set_fs(), get_fs(), load_sr2(), thread_info->addr_limit, KERNEL_DS and USER_DS. The nice side-effect of this patch is that we now can directly access userspace via sr3 without the need to use a temporary sr2 which is either copied from sr3 or set to zero (for kernel space). Signed-off-by: Helge Deller <deller@gmx.de> Suggested-by: Arnd Bergmann <arnd@kernel.org>
Diffstat (limited to 'arch/parisc/include/asm/thread_info.h')
-rw-r--r-- | arch/parisc/include/asm/thread_info.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/parisc/include/asm/thread_info.h b/arch/parisc/include/asm/thread_info.h index 0bd38a972cea..00ad50fef769 100644 --- a/arch/parisc/include/asm/thread_info.h +++ b/arch/parisc/include/asm/thread_info.h @@ -11,7 +11,6 @@ struct thread_info { struct task_struct *task; /* main task structure */ unsigned long flags; /* thread_info flags (see TIF_*) */ - mm_segment_t addr_limit; /* user-level address space limit */ __u32 cpu; /* current CPU */ int preempt_count; /* 0=premptable, <0=BUG; will also serve as bh-counter */ }; @@ -21,7 +20,6 @@ struct thread_info { .task = &tsk, \ .flags = 0, \ .cpu = 0, \ - .addr_limit = KERNEL_DS, \ .preempt_count = INIT_PREEMPT_COUNT, \ } |