xen: setup percpu data pointers
authorJeremy Fitzhardinge <jeremy@goop.org>
Mon, 2 Feb 2009 21:55:31 +0000 (13:55 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 5 Feb 2009 00:59:02 +0000 (16:59 -0800)
commit383414322b3b3ced0cbc146801e0cc6c60a6c5f4
treef6abd0c09f3f15c1fd78d81a443ae4bf985bdc84
parent327641da8e3e227f42690479182b896fd19486be
xen: setup percpu data pointers

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.

Also, set the kernel stack when bringing up secondary CPUs.  If we
don't they all end up sharing the same stack...

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/xen/enlighten.c
arch/x86/xen/smp.c
arch/x86/xen/xen-ops.h