From a39509a8fe2446ea3d6093b4dfebf7740571e55e Mon Sep 17 00:00:00 2001 From: Zide Chen Date: Thu, 26 Apr 2018 13:18:03 -0700 Subject: [PATCH] HV: fixed the issue of AP initialization code can't be loaded to address high than 64K Signed-off-by: Zheng, Gen Signed-off-by: Jason Chen CJ Signed-off-by: Zide Chen --- hypervisor/arch/x86/cpu_secondary.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hypervisor/arch/x86/cpu_secondary.S b/hypervisor/arch/x86/cpu_secondary.S index 35df24f4a..74a9562b1 100644 --- a/hypervisor/arch/x86/cpu_secondary.S +++ b/hypervisor/arch/x86/cpu_secondary.S @@ -51,6 +51,8 @@ cpu_secondary_reset: /* Disable local interrupts */ cli + mov %cs, %ax + mov %ax, %ds /* Set DE, PAE, MCE and OS support bits in CR4 */ @@ -77,9 +79,7 @@ cpu_secondary_reset: mov %ebx, %cr0 /* Load temportary GDT pointer value */ - - mov $cpu_secondary_gdt_ptr, %ebx - lgdt (%ebx) + lgdt (cpu_secondary_gdt_ptr - cpu_secondary_reset) /* Perform a long jump based to start executing in 64-bit mode */