Skip to content

Commit

Permalink
[ACPI] S3 resume -- use lgdtl, not lgdt
Browse files Browse the repository at this point in the history
From: Nickolai Zeldovich <kolya@MIT.EDU>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Nickolai Zeldovich authored and Len Brown committed Jul 12, 2005
1 parent c9c3e45 commit 9d94377
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/i386/kernel/acpi/wakeup.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d94377

Please sign in to comment.