Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136710
b: refs/heads/master
c: 795f99b
h: refs/heads/master
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Tejun Heo committed Jan 31, 2009
1 parent e3f7556 commit bf8924d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 11e3a840cd5b731cdd8f6f956dfae78a8046d09c
refs/heads/master: 795f99b61d20c34cb04d17d8906b32f745a635ec
3 changes: 3 additions & 0 deletions trunk/arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
5 changes: 4 additions & 1 deletion trunk/arch/x86/xen/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ static void __init xen_smp_prepare_boot_cpu(void)

/* We've switched to the "real" per-cpu gdt, so make sure the
old memory can be recycled */
make_lowmem_page_readwrite(&per_cpu_var(gdt_page));
make_lowmem_page_readwrite(__per_cpu_load +
(unsigned long)&per_cpu_var(gdt_page));

xen_setup_vcpu_info_placement();
}
Expand Down Expand Up @@ -235,6 +236,8 @@ cpu_initialize_context(unsigned int cpu, struct task_struct *idle)
ctxt->user_regs.ss = __KERNEL_DS;
#ifdef CONFIG_X86_32
ctxt->user_regs.fs = __KERNEL_PERCPU;
#else
ctxt->gs_base_kernel = per_cpu_offset(cpu);
#endif
ctxt->user_regs.eip = (unsigned long)cpu_bringup_and_idle;
ctxt->user_regs.eflags = 0x1000; /* IOPL_RING1 */
Expand Down

0 comments on commit bf8924d

Please sign in to comment.