[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH]smpboot.c: Don't boot cpu if apicid is BAD_APICID


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Natasha Jarymowycz" <natasha@xxxxxxxxxx>
  • Date: Mon, 16 May 2005 14:45:23 -0500
  • Delivery-date: Mon, 16 May 2005 19:44:59 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>


Various mach-specific platforms return BAD_APICID from
cpu_present_to_apicid.  This check is needed or do_boot_cpu
will be called with an invalid APICID.

Signed-off-by: Natasha Jarymowycz <natasha@xxxxxxxxxx>

--- xen-unstable/xen/arch/x86/smpboot.c 2005-05-15 22:15:30.000000000 -0500
+++ xen-unstable.patched/xen/arch/x86/smpboot.c 2005-05-17 12:17:32.000000000 -0500
@@ -871,7 +871,7 @@
         /*
          * Don't even attempt to start the boot CPU!
          */
-        if (apicid == boot_cpu_apicid)
+        if ((apicid == boot_cpu_apicid) || (apicid == BAD_APICID))
             continue;

         /*


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.