aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-06-22 08:40:28 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-06-22 08:40:28 -0400
commit3bcda76d9d1c0c4e70d5e3b7a962e46de2e79b61 (patch)
tree2fa24cb3d42a643258185b5cade0787dc84f59e0
parent1af858fdd2aa4107ff4e1c9fc1b23929d16a7491 (diff)
parentffa64eff956a25548cad0391dbc14c672827be7b (diff)
Merge branch 'pm-sleep'
* pm-sleep: x86: Load __USER_DS into DS/ES after resume
-rw-r--r--arch/x86/kernel/acpi/wakeup_32.S6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/kernel/acpi/wakeup_32.S b/arch/x86/kernel/acpi/wakeup_32.S
index 665c6b7d2ea9..0c26b1b44e51 100644
--- a/arch/x86/kernel/acpi/wakeup_32.S
+++ b/arch/x86/kernel/acpi/wakeup_32.S
@@ -12,11 +12,13 @@ ENTRY(wakeup_pmode_return)
12wakeup_pmode_return: 12wakeup_pmode_return:
13 movw $__KERNEL_DS, %ax 13 movw $__KERNEL_DS, %ax
14 movw %ax, %ss 14 movw %ax, %ss
15 movw %ax, %ds
16 movw %ax, %es
17 movw %ax, %fs 15 movw %ax, %fs
18 movw %ax, %gs 16 movw %ax, %gs
19 17
18 movw $__USER_DS, %ax
19 movw %ax, %ds
20 movw %ax, %es
21
20 # reload the gdt, as we need the full 32 bit address 22 # reload the gdt, as we need the full 32 bit address
21 lidt saved_idt 23 lidt saved_idt
22 lldt saved_ldt 24 lldt saved_ldt