Skip to content

Commit

Permalink
[PATCH] s-t-RAM: load gdt the right way
Browse files Browse the repository at this point in the history
Sleep code uses wrong version of lgdt, that does the wrong thing when
gdt is beyond 16MB or so.

Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Pavel Machek authored and Linus Torvalds committed Jun 25, 2005
1 parent 648be31 commit 343c3f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86_64/kernel/acpi/wakeup.S
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ wakeup_code:
shll $4, %eax
addl $(gdta - wakeup_code), %eax
movl %eax, gdt_48a +2 - wakeup_code
lgdt %ds:gdt_48a - wakeup_code # load gdt with whatever is
lgdtl %ds:gdt_48a - wakeup_code # load gdt with whatever is
# appropriate

movl $1, %eax # protected mode (PE) bit
Expand Down

0 comments on commit 343c3f6

Please sign in to comment.