From 6d6dd7491108432c66e414a299c6807ecb3a3eb4 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Thu, 2 Apr 2009 01:46:57 +0000 Subject: [PATCH] Reduce code duplcations from r190620. While I am here, tweak a comment. --- sys/amd64/acpica/acpi_switch.S | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/amd64/acpica/acpi_switch.S b/sys/amd64/acpica/acpi_switch.S index 2274c85ec547..892dd11c47a5 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