diff options
author | jkim <jkim@FreeBSD.org> | 2010-12-22 19:57:03 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2010-12-22 19:57:03 +0000 |
commit | 940b86ebdccd1f22427e953eccea0f4bc2f5ba06 (patch) | |
tree | a4072fdeb9467dee9b67632d7ebb90b7c6c1c161 /sys/amd64/amd64/cpu_switch.S | |
parent | 0826d29a2d8e53cc3f8de837cc3646c464f5cd20 (diff) | |
download | FreeBSD-src-940b86ebdccd1f22427e953eccea0f4bc2f5ba06.zip FreeBSD-src-940b86ebdccd1f22427e953eccea0f4bc2f5ba06.tar.gz |
Increase size of pcb_flags to four bytes.
Requested by: bde, jhb
Diffstat (limited to 'sys/amd64/amd64/cpu_switch.S')
-rw-r--r-- | sys/amd64/amd64/cpu_switch.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/amd64/cpu_switch.S b/sys/amd64/amd64/cpu_switch.S index 8161fa4..efb01b1 100644 --- a/sys/amd64/amd64/cpu_switch.S +++ b/sys/amd64/amd64/cpu_switch.S @@ -94,7 +94,7 @@ END(cpu_throw) ENTRY(cpu_switch) /* Switch to new thread. First, save context. */ movq TD_PCB(%rdi),%r8 - orb $PCB_FULL_IRET,PCB_FLAGS(%r8) + orl $PCB_FULL_IRET,PCB_FLAGS(%r8) movq (%rsp),%rax /* Hardware registers */ movq %r15,PCB_R15(%r8) @@ -106,7 +106,7 @@ ENTRY(cpu_switch) movq %rbx,PCB_RBX(%r8) movq %rax,PCB_RIP(%r8) - testb $PCB_DBREGS,PCB_FLAGS(%r8) + testl $PCB_DBREGS,PCB_FLAGS(%r8) jnz store_dr /* static predict not taken */ done_store_dr: @@ -210,7 +210,7 @@ done_tss: movq %rsi,PCPU(CURTHREAD) /* into next thread */ /* Test if debug registers should be restored. */ - testb $PCB_DBREGS,PCB_FLAGS(%r8) + testl $PCB_DBREGS,PCB_FLAGS(%r8) jnz load_dr /* static predict not taken */ done_load_dr: |