diff options
author | Michael Brown | 2005-04-09 18:42:50 +0200 |
---|---|---|
committer | Michael Brown | 2005-04-09 18:42:50 +0200 |
commit | 2fa14f2f1d616cdbbeecc7e31a68efcdeebcc61f (patch) | |
tree | 0edf1831d67163ff9dccdf3280604d3b162b2a27 /src | |
parent | Add INIT_FNs to make sure that librm gets reallocated when needed. (diff) | |
download | ipxe-2fa14f2f1d616cdbbeecc7e31a68efcdeebcc61f.tar.gz ipxe-2fa14f2f1d616cdbbeecc7e31a68efcdeebcc61f.tar.xz ipxe-2fa14f2f1d616cdbbeecc7e31a68efcdeebcc61f.zip |
lgdt needs data32 prefix, otherwise it loads only 24 bits. (sgdt
always saves 32 bits).
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/i386/transitions/librm.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/i386/transitions/librm.S b/src/arch/i386/transitions/librm.S index c915b7ee..d0ff1f39 100644 --- a/src/arch/i386/transitions/librm.S +++ b/src/arch/i386/transitions/librm.S @@ -287,7 +287,7 @@ EXPORT(real_to_prot): pushl %eax /* Restore protected-mode GDT */ - lgdt %ds:OFFSET(pm_gdt) + data32 lgdt %ds:OFFSET(pm_gdt) /* Switch to protected mode */ movl %cr0, %eax |