Skip to contentSkip to conversation

fix ia64 per cpu setup ordering

PATCH New Alex Williamson 1 participant 1 message Aug 8, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix ia64 per cpu setup ordering

Hi Keir,

With the recent per cpu changes, scheduler_init() now starts poking
at per cpu space before we've configured it on ia64. This re-orders the setup calls to avoid this problem. Please apply. Thanks,

Alex

---

xen/arch/ia64/xen/xensetup.c +2 -0
diff -r 1f05ac8abda6 xen/arch/ia64/xen/xensetup.c
@@ -423,13 +423,14 @@ void start_kernel(void)
 	(xenheap_phys_end-__pa(heap_start)) >> 20,
 	(xenheap_phys_end-__pa(heap_start)) >> 10);
 
+    late_setup_arch(&cmdline);
+
     scheduler_init();
     idle_vcpu[0] = (struct vcpu*) ia64_r13;
     idle_domain = domain_create(IDLE_DOMAIN_ID);
     if ( (idle_domain == NULL) || (alloc_vcpu(idle_domain, 0, 0) ==

NULL) )

         BUG();
-    late_setup_arch(&cmdline);
     alloc_dom_xen_and_dom_io();
     setup_per_cpu_areas();
     mem_init();