summaryrefslogtreecommitdiff
path: root/arch/i386
diff options
context:
space:
mode:
authorNickolai Zeldovich <kolya@MIT.EDU>2005-04-09 03:37:34 (GMT)
committerLen Brown <len.brown@intel.com>2005-07-12 04:04:31 (GMT)
commit9d9437759eb6fdb68f7b82cbee20b0fb711d9f0d (patch)
treed628c8be86e066f11c5967c5ee02c7248993607d /arch/i386
parentc9c3e457de24cca2ca688fa397d93a241f472048 (diff)
downloadlinux-9d9437759eb6fdb68f7b82cbee20b0fb711d9f0d.tar.xz
[ACPI] S3 resume -- use lgdtl, not lgdt
From: Nickolai Zeldovich <kolya@MIT.EDU> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'arch/i386')
-rw-r--r--arch/i386/kernel/acpi/wakeup.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/i386/kernel/acpi/wakeup.S b/arch/i386/kernel/acpi/wakeup.S
index 39d32484..44d886c 100644
--- a/arch/i386/kernel/acpi/wakeup.S
+++ b/arch/i386/kernel/acpi/wakeup.S
@@ -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