Skip to content

Commit a39509a

Browse files
ZideChen0jren1
authored andcommitted
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>
1 parent 1cd06ba commit a39509a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hypervisor/arch/x86/cpu_secondary.S

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ cpu_secondary_reset:
5151
/* Disable local interrupts */
5252

5353
cli
54+
mov %cs, %ax
55+
mov %ax, %ds
5456

5557
/* Set DE, PAE, MCE and OS support bits in CR4 */
5658

@@ -77,9 +79,7 @@ cpu_secondary_reset:
7779
mov %ebx, %cr0
7880

7981
/* Load temportary GDT pointer value */
80-
81-
mov $cpu_secondary_gdt_ptr, %ebx
82-
lgdt (%ebx)
82+
lgdt (cpu_secondary_gdt_ptr - cpu_secondary_reset)
8383

8484
/* Perform a long jump based to start executing in 64-bit mode */
8585

0 commit comments

Comments
 (0)