From f1623b231a8327d7953386e9e4cdd1223a8faf3b Mon Sep 17 00:00:00 2001 From: kmacy Date: Thu, 18 Sep 2008 02:59:19 +0000 Subject: Change order of pcpu initialization so the pc_prvspace is set MFC after: 1 month --- sys/i386/xen/mp_machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/i386/xen/mp_machdep.c b/sys/i386/xen/mp_machdep.c index 0208d2e..b00acb7 100644 --- a/sys/i386/xen/mp_machdep.c +++ b/sys/i386/xen/mp_machdep.c @@ -558,11 +558,11 @@ start_all_aps(void) /* Get per-cpu data */ pc = &__pcpu[bootAP]; + pcpu_init(pc, bootAP, sizeof(struct pcpu)); pc->pc_apic_id = cpu_apic_ids[bootAP]; pc->pc_prvspace = pc; pc->pc_curthread = 0; - pcpu_init(pc, bootAP, sizeof(struct pcpu)); gdt_segs[GPRIV_SEL].ssd_base = (int) pc; gdt_segs[GPROC0_SEL].ssd_base = (int) &pc->pc_common_tss; -- cgit v1.1