svn commit: r190636 - head/sys/amd64/acpica
Jung-uk Kim
jkim at FreeBSD.org
Wed Apr 1 18:46:59 PDT 2009
Author: jkim
Date: Thu Apr 2 01:46:57 2009
New Revision: 190636
URL: http://svn.freebsd.org/changeset/base/190636
Log:
Reduce code duplcations from r190620. While I am here, tweak a comment.
Modified:
head/sys/amd64/acpica/acpi_switch.S
Modified: head/sys/amd64/acpica/acpi_switch.S
==============================================================================
--- head/sys/amd64/acpica/acpi_switch.S Thu Apr 2 00:23:56 2009 (r190635)
+++ head/sys/amd64/acpica/acpi_switch.S Thu Apr 2 01:46:57 2009 (r190636)
@@ -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
More information about the svn-src-head
mailing list