Skip to contentSkip to conversation

Vmi initialize fs for smp

PATCH New Zachary Amsden 1 participant 1 message Jan 5, 2007 virtio core

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 Vmi initialize fs for smp

Now that Jeremy's change to move the kernel PDA to %fs has arrived, convert the AP processor setup for SMP to use FS instead of GS.

arch/i386/kernel/vmi.c +2 -2
diff -r 2ac108843573 arch/i386/kernel/vmi.c
@@ -533,8 +533,8 @@ vmi_startup_ipi_hook(int phys_apicid, un
 
 	ap.ds = __USER_DS;
 	ap.es = __USER_DS;
-	ap.fs = 0;
-	ap.gs = __KERNEL_PDA;
+	ap.fs = __KERNEL_PDA;
+	ap.gs = 0;
 
 	ap.eflags = 0;