* [patch] Fix GDT loading during resume from suspend-to-RAM
@ 2005-07-12 9:14 Pavel Machek
2005-07-12 9:30 ` Andrew Morton
0 siblings, 1 reply; 2+ messages in thread
From: Pavel Machek @ 2005-07-12 9:14 UTC (permalink / raw)
To: Andrew Morton, kernel list
Fix GDT loading during resume from suspend-to-RAM.
Signed-off-by: Pavel Machek <pavel@suse.cz>
---
commit 523c9470749c558e002f3041f5af620acf7f3e0c
tree 92b643196cbaa89fa54ff141bc94fee8664009b3
parent 79b675b6cc9268d178b3c0a2af2e4f944c5fdf9b
author <pavel@amd.(none)> Tue, 12 Jul 2005 11:13:30 +0200
committer <pavel@amd.(none)> Tue, 12 Jul 2005 11:13:30 +0200
arch/i386/kernel/acpi/wakeup.S | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/i386/kernel/acpi/wakeup.S b/arch/i386/kernel/acpi/wakeup.S
--- 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
--
teflon -- maybe it is a trademark, but it should not be.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] Fix GDT loading during resume from suspend-to-RAM
2005-07-12 9:14 [patch] Fix GDT loading during resume from suspend-to-RAM Pavel Machek
@ 2005-07-12 9:30 ` Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2005-07-12 9:30 UTC (permalink / raw)
To: Pavel Machek; +Cc: linux-kernel, Brown, Len
Pavel Machek <pavel@ucw.cz> wrote:
>
> Fix GDT loading during resume from suspend-to-RAM.
>
This change is already in Len's acpi tree. Len, can you merge it for
2.6.13 please?
>
> ---
> commit 523c9470749c558e002f3041f5af620acf7f3e0c
> tree 92b643196cbaa89fa54ff141bc94fee8664009b3
> parent 79b675b6cc9268d178b3c0a2af2e4f944c5fdf9b
> author <pavel@amd.(none)> Tue, 12 Jul 2005 11:13:30 +0200
> committer <pavel@amd.(none)> Tue, 12 Jul 2005 11:13:30 +0200
>
> arch/i386/kernel/acpi/wakeup.S | 5 +++--
> 1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/arch/i386/kernel/acpi/wakeup.S b/arch/i386/kernel/acpi/wakeup.S
> --- 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
>
> --
> teflon -- maybe it is a trademark, but it should not be.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-12 9:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-12 9:14 [patch] Fix GDT loading during resume from suspend-to-RAM Pavel Machek
2005-07-12 9:30 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).