mirror of
https://github.com/ipxe/ipxe
synced 2025-12-12 06:22:01 +03:00
lgdt needs data32 prefix, otherwise it loads only 24 bits. (sgdt
always saves 32 bits).
This commit is contained in:
@@ -287,7 +287,7 @@ EXPORT(real_to_prot):
|
|||||||
pushl %eax
|
pushl %eax
|
||||||
|
|
||||||
/* Restore protected-mode GDT */
|
/* Restore protected-mode GDT */
|
||||||
lgdt %ds:OFFSET(pm_gdt)
|
data32 lgdt %ds:OFFSET(pm_gdt)
|
||||||
|
|
||||||
/* Switch to protected mode */
|
/* Switch to protected mode */
|
||||||
movl %cr0, %eax
|
movl %cr0, %eax
|
||||||
|
|||||||
Reference in New Issue
Block a user