xen: setup percpu data pointers
authorJeremy Fitzhardinge <jeremy@goop.org>
Fri, 30 Jan 2009 08:47:54 +0000 (17:47 +0900)
committerTejun Heo <tj@kernel.org>
Sat, 31 Jan 2009 05:28:58 +0000 (14:28 +0900)
commit795f99b61d20c34cb04d17d8906b32f745a635ec
treef42d20a1962fb6975025a54050bde9d7cf415b16
parent11e3a840cd5b731cdd8f6f956dfae78a8046d09c
xen: setup percpu data pointers

Impact: fix xen booting

We need to access percpu data fairly early, so set up the percpu
registers as soon as possible.  We only need to load the appropriate
segment register.  We already have a GDT, but its hard to change it
early because we need to manipulate the pagetable to do so, and that
hasn't been set up yet.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
arch/x86/xen/enlighten.c
arch/x86/xen/smp.c