From: Tejun Heo Date: Mon, 9 Feb 2009 13:17:40 +0000 (+0900) Subject: x86: add %gs accessors for x86_32 X-Git-Tag: v2.6.30-rc1~2^2~50^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9a89a26e02ef9ed03f74a755a8b4d8f3a066622;p=pandora-kernel.git 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 Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed