-
- Downloads
x86: add %gs accessors for x86_32
Impact: cleanup On x86_32, %gs is handled lazily. It's not saved and restored on kernel entry/exit but only when necessary which usually is during task switch but there are few other places. Currently, it's done by calling savesegment() and loadsegment() explicitly. Define get_user_gs(), set_user_gs() and task_user_gs() and use them instead. While at it, clean up register access macros in signal.c. This cleans up code a bit and will help future changes. Signed-off-by:Tejun Heo <tj@kernel.org> Signed-off-by:
Ingo Molnar <mingo@elte.hu>
Showing
- arch/x86/include/asm/a.out-core.h 1 addition, 1 deletionarch/x86/include/asm/a.out-core.h
- arch/x86/include/asm/elf.h 1 addition, 1 deletionarch/x86/include/asm/elf.h
- arch/x86/include/asm/mmu_context.h 1 addition, 1 deletionarch/x86/include/asm/mmu_context.h
- arch/x86/include/asm/system.h 9 additions, 0 deletionsarch/x86/include/asm/system.h
- arch/x86/kernel/process_32.c 3 additions, 3 deletionsarch/x86/kernel/process_32.c
- arch/x86/kernel/ptrace.c 6 additions, 8 deletionsarch/x86/kernel/ptrace.c
- arch/x86/kernel/signal.c 16 additions, 25 deletionsarch/x86/kernel/signal.c
- arch/x86/kernel/vm86_32.c 2 additions, 2 deletionsarch/x86/kernel/vm86_32.c
- arch/x86/math-emu/get_address.c 2 additions, 4 deletionsarch/x86/math-emu/get_address.c
Loading
Please register or sign in to comment