From 2fa14f2f1d616cdbbeecc7e31a68efcdeebcc61f Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sat, 9 Apr 2005 16:42:50 +0000 Subject: [PATCH] lgdt needs data32 prefix, otherwise it loads only 24 bits. (sgdt always saves 32 bits). --- src/arch/i386/transitions/librm.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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