HV: fixed the issue of AP initialization code can't be loaded to address high than 64K

Signed-off-by: Zheng, Gen <gen.zheng@intel.com>
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
Signed-off-by: Zide Chen <zide.chen@intel.com>
This commit is contained in:
Zide Chen 2018-04-26 13:18:03 -07:00 committed by Jack Ren
parent 1cd06ba303
commit a39509a8fe

View File

@ -51,6 +51,8 @@ cpu_secondary_reset:
/* Disable local interrupts */ /* Disable local interrupts */
cli cli
mov %cs, %ax
mov %ax, %ds
/* Set DE, PAE, MCE and OS support bits in CR4 */ /* Set DE, PAE, MCE and OS support bits in CR4 */
@ -77,9 +79,7 @@ cpu_secondary_reset:
mov %ebx, %cr0 mov %ebx, %cr0
/* Load temportary GDT pointer value */ /* Load temportary GDT pointer value */
lgdt (cpu_secondary_gdt_ptr - cpu_secondary_reset)
mov $cpu_secondary_gdt_ptr, %ebx
lgdt (%ebx)
/* Perform a long jump based to start executing in 64-bit mode */ /* Perform a long jump based to start executing in 64-bit mode */