diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2009-01-30 17:47:54 +0900 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-01-31 14:28:58 +0900 |
commit | 795f99b61d20c34cb04d17d8906b32f745a635ec (patch) | |
tree | f42d20a1962fb6975025a54050bde9d7cf415b16 /arch/x86/xen/enlighten.c | |
parent | 11e3a840cd5b731cdd8f6f956dfae78a8046d09c (diff) |
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>
Diffstat (limited to 'arch/x86/xen/enlighten.c')
-rw-r--r-- | arch/x86/xen/enlighten.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index bef941f61451..fe19c88a5029 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c @@ -1647,6 +1647,9 @@ asmlinkage void __init xen_start_kernel(void) have_vcpu_info_placement = 0; #endif + /* setup percpu state */ + load_percpu_segment(0); + xen_smp_init(); /* Get mfn list */ |