[ACPI] S3 resume -- use lgdtl, not lgdt
authorNickolai Zeldovich <kolya@MIT.EDU>
Sat, 9 Apr 2005 03:37:34 +0000 (23:37 -0400)
committerLen Brown <len.brown@intel.com>
Tue, 12 Jul 2005 04:04:31 +0000 (00:04 -0400)
From: Nickolai Zeldovich <kolya@MIT.EDU>
Signed-off-by: Len Brown <len.brown@intel.com>
arch/i386/kernel/acpi/wakeup.S

index 39d32484f6f58d9db03f6bfee79ca3f3c87c3fab..44d886c745ecc26063d88fed02a6d4929461337f 100644 (file)
@@ -74,8 +74,9 @@ wakeup_code:
        movw    %ax,%fs
        movw    $0x0e00 + 'i', %fs:(0x12)
        
-       # need a gdt
-       lgdt    real_save_gdt - wakeup_code
+       # need a gdt -- use lgdtl to force 32-bit operands, in case
+       # the GDT is located past 16 megabytes.
+       lgdtl   real_save_gdt - wakeup_code
 
        movl    real_save_cr0 - wakeup_code, %eax
        movl    %eax, %cr0