summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/amd64/acpica/acpi_switch.S4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/amd64/acpica/acpi_switch.S b/sys/amd64/acpica/acpi_switch.S
index 2274c85..892dd11 100644
--- a/sys/amd64/acpica/acpi_switch.S
+++ b/sys/amd64/acpica/acpi_switch.S
@@ -67,9 +67,7 @@ ENTRY(acpi_restorecpu)
/* Force kernel segment registers. */
movl $KDSEL, %eax
movw %ax, %ds
- movl $KDSEL, %eax
movw %ax, %es
- movl $KDSEL, %eax
movw %ax, %ss
movl $KUF32SEL, %eax
movw %ax, %fs
@@ -132,7 +130,7 @@ ENTRY(acpi_restorecpu)
#define SDT_SYSTSS 9
#define SDT_SYSBSY 11
- /* Reset task busy bit and reload TR. */
+ /* Clear "task busy" bit and reload TR. */
movq PCPU(TSS), %rax
andb $(~SDT_SYSBSY | SDT_SYSTSS), 5(%rax)
movw WAKEUP_XPCB(TR), %ax
OpenPOWER on IntegriCloud