From: Michael Brown Date: Sat, 9 Apr 2005 16:42:50 +0000 (+0000) Subject: lgdt needs data32 prefix, otherwise it loads only 24 bits. (sgdt X-Git-Tag: v0.9.3~2064 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2fa14f2f1d616cdbbeecc7e31a68efcdeebcc61f;p=thirdparty%2Fipxe.git lgdt needs data32 prefix, otherwise it loads only 24 bits. (sgdt always saves 32 bits). --- diff --git a/src/arch/i386/transitions/librm.S b/src/arch/i386/transitions/librm.S index c915b7ee0..d0ff1f39a 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