diff options
author | Pavel Machek <pavel@ucw.cz> | 2005-06-25 17:55:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 19:24:32 -0400 |
commit | 343c3f642898cb2cb5c3e4f948e3e0a1bbc0351b (patch) | |
tree | ef27a6ffe06517e602f064d2c794901a93fe7e73 /arch | |
parent | 648be3188135add682349e86d46d07cc11c8eb57 (diff) |
[PATCH] s-t-RAM: load gdt the right way
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86_64/kernel/acpi/wakeup.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/acpi/wakeup.S b/arch/x86_64/kernel/acpi/wakeup.S index a4c630034cd4..185faa911db5 100644 --- a/arch/x86_64/kernel/acpi/wakeup.S +++ b/arch/x86_64/kernel/acpi/wakeup.S | |||
@@ -67,7 +67,7 @@ wakeup_code: | |||
67 | shll $4, %eax | 67 | shll $4, %eax |
68 | addl $(gdta - wakeup_code), %eax | 68 | addl $(gdta - wakeup_code), %eax |
69 | movl %eax, gdt_48a +2 - wakeup_code | 69 | movl %eax, gdt_48a +2 - wakeup_code |
70 | lgdt %ds:gdt_48a - wakeup_code # load gdt with whatever is | 70 | lgdtl %ds:gdt_48a - wakeup_code # load gdt with whatever is |
71 | # appropriate | 71 | # appropriate |
72 | 72 | ||
73 | movl $1, %eax # protected mode (PE) bit | 73 | movl $1, %eax # protected mode (PE) bit |