Skip to content

Commit

Permalink
Merge branch 'pm-sleep'
Browse files Browse the repository at this point in the history
* pm-sleep:
  x86: Load __USER_DS into DS/ES after resume
  • Loading branch information
Rafael J. Wysocki committed Jun 22, 2015
2 parents 1af858f + ffa64ef commit 3bcda76
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/x86/kernel/acpi/wakeup_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ ENTRY(wakeup_pmode_return)
wakeup_pmode_return:
movw $__KERNEL_DS, %ax
movw %ax, %ss
movw %ax, %ds
movw %ax, %es
movw %ax, %fs
movw %ax, %gs

movw $__USER_DS, %ax
movw %ax, %ds
movw %ax, %es

# reload the gdt, as we need the full 32 bit address
lidt saved_idt
lldt saved_ldt
Expand Down

0 comments on commit 3bcda76

Please sign in to comment.