From: Pavel Machek <pavel@ucw.cz>
To: Andrew Morton <akpm@zip.com.au>,
kernel list <linux-kernel@vger.kernel.org>
Subject: [patch] Fix GDT loading during resume from suspend-to-RAM
Date: Tue, 12 Jul 2005 11:14:00 +0200 [thread overview]
Message-ID: <20050712091400.GI1854@elf.ucw.cz> (raw)
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.
next reply other threads:[~2005-07-12 9:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-12 9:14 Pavel Machek [this message]
2005-07-12 9:30 ` Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050712091400.GI1854@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=akpm@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®