summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/transitions/librm.S
diff options
context:
space:
mode:
authorMichael Brown2005-04-09 18:42:50 +0200
committerMichael Brown2005-04-09 18:42:50 +0200
commit2fa14f2f1d616cdbbeecc7e31a68efcdeebcc61f (patch)
tree0edf1831d67163ff9dccdf3280604d3b162b2a27 /src/arch/i386/transitions/librm.S
parentAdd INIT_FNs to make sure that librm gets reallocated when needed. (diff)
downloadipxe-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/arch/i386/transitions/librm.S')
-rw-r--r--src/arch/i386/transitions/librm.S2
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