WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Tiny bootstrap cleanup.

# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID da7873110bbb8b55d9adb9111d100e209fc49ee6
# Parent  1572681e4e5a06cfd08cd5bffe4736c61dce4335
Tiny bootstrap cleanup.

Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r 1572681e4e5a -r da7873110bbb xen/arch/x86/setup.c
--- a/xen/arch/x86/setup.c      Mon Jan  9 18:44:30 2006
+++ b/xen/arch/x86/setup.c      Mon Jan  9 18:46:46 2006
@@ -165,9 +165,8 @@
     if ( (mbi->flags & MBI_CMDLINE) && (mbi->cmdline != 0) )
         cmdline_parse(__va(mbi->cmdline));
 
-    /* Must do this early -- e.g., spinlocks rely on get_current(). */
-    set_current(NULL/*idle_vcpu[0]*/);
-    set_processor_id(0);
+    set_current((struct vcpu *)0xfffff000); /* debug sanity */
+    set_processor_id(0); /* needed early, for smp_processor_id() */
 
     smp_prepare_boot_cpu();
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Tiny bootstrap cleanup., Xen patchbot -unstable <=