]> git.baikalelectronics.ru Git - kernel.git/commit
x86: set %fs to __KERNEL_PERCPU unconditionally for x86_32
authorBrian Gerst <brgerst@gmail.com>
Wed, 21 Jan 2009 08:26:05 +0000 (17:26 +0900)
committerTejun Heo <tj@kernel.org>
Wed, 21 Jan 2009 08:26:05 +0000 (17:26 +0900)
commit04c9b54d94ce615f92ceb84ce7d266416b9ba821
tree1ab75fceefae986c80dbe1e86a7975df3fb5d9fd
parent4a00b688943f450d64f469d620fc9225ef067329
x86: set %fs to __KERNEL_PERCPU unconditionally for x86_32

Impact: cleanup

%fs is currently set to __KERNEL_DS at boot, and conditionally
switched to __KERNEL_PERCPU for secondary cpus.  Instead, initialize
GDT_ENTRY_PERCPU to the same attributes as GDT_ENTRY_KERNEL_DS and
set %fs to __KERNEL_PERCPU unconditionally.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
arch/x86/kernel/cpu/common.c
arch/x86/kernel/head_32.S