diff options
author | Tejun Heo <tj@kernel.org> | 2009-02-09 14:17:40 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-10 00:41:58 +0100 |
commit | d9a89a26e02ef9ed03f74a755a8b4d8f3a066622 (patch) | |
tree | 35f3713bca4e6b815f6b9db92dc9d812ec7213ff /arch/x86/kernel/asm-offsets_32.c | |
parent | x86: use asm .macro instead of cpp #define in entry_32.S (diff) | |
download | linux-d9a89a26e02ef9ed03f74a755a8b4d8f3a066622.tar.xz linux-d9a89a26e02ef9ed03f74a755a8b4d8f3a066622.zip |
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>
Diffstat (limited to 'arch/x86/kernel/asm-offsets_32.c')
0 files changed, 0 insertions, 0 deletions