Skip to contentSkip to conversation

Fix GDT loading during resume from suspend-to-RAM

PATCH In review Pavel Machek 2 participants 2 messages Jul 12, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix GDT loading during resume from suspend-to-RAM

Fix GDT loading during resume from suspend-to-RAM.

---
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(-)
arch/i386/kernel/acpi/wakeup.S +3 -2
@@ -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
Signature · 1 line
teflon -- maybe it is a trademark, but it should not be.
#1 lore raw
Quoted 3 lines · Pavel Machek

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?

Quoted 29 lines

---
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(-)
arch/i386/kernel/acpi/wakeup.S +3 -2
@@ -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
Signature · 2 lines
-- 
teflon -- maybe it is a trademark, but it should not be.