]> git.karo-electronics.de Git - linux-beck.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)
commit0dd76d736eeb3e0ef86c5b103b47ae0e15edebad
tree1ab75fceefae986c80dbe1e86a7975df3fb5d9fd
parent299e26992a737804e13e74fdb97cdab470ed19ac
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