summaryrefslogtreecommitdiffstats
path: root/sys/amd64/acpica
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2009-04-02 01:46:57 +0000
committerjkim <jkim@FreeBSD.org>2009-04-02 01:46:57 +0000
commit07b56fda3b182476e1206f2b4a32301faaf923ec (patch)
treee781311914d5819a4098093e0b5e63b2702f5142 /sys/amd64/acpica
parent22270c1fb939b1c07fdff1f7e8f1f33d25e86df4 (diff)
downloadFreeBSD-src-07b56fda3b182476e1206f2b4a32301faaf923ec.zip
FreeBSD-src-07b56fda3b182476e1206f2b4a32301faaf923ec.tar.gz
Reduce code duplcations from r190620. While I am here, tweak a comment.
Diffstat (limited to 'sys/amd64/acpica')
-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