diff options
author | peter <peter@FreeBSD.org> | 2005-06-24 00:29:53 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2005-06-24 00:29:53 +0000 |
commit | c457f9b0df49f1ca53b79e9be38643692e2d5816 (patch) | |
tree | cd7b9117a1df5fe3846b0f4be496facbe580471f /sys/amd64 | |
parent | c9db8c3eb49d041c50e99ea272a191318f20d3d6 (diff) | |
download | FreeBSD-src-c457f9b0df49f1ca53b79e9be38643692e2d5816.zip FreeBSD-src-c457f9b0df49f1ca53b79e9be38643692e2d5816.tar.gz |
MFi386: 1.258: Minor cleanups
Approved by: re (blanket i386<->amd64 sync)
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/vm_machdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/amd64/vm_machdep.c b/sys/amd64/amd64/vm_machdep.c index d3cae91..5acc1c0 100644 --- a/sys/amd64/amd64/vm_machdep.c +++ b/sys/amd64/amd64/vm_machdep.c @@ -206,14 +206,14 @@ cpu_exit(struct thread *td) void cpu_thread_exit(struct thread *td) { - struct pcb *pcb = td->td_pcb; if (td == PCPU_GET(fpcurthread)) fpudrop(); - if (pcb->pcb_flags & PCB_DBREGS) { - /* disable all hardware breakpoints */ + + /* Disable any hardware breakpoints. */ + if (td->td_pcb->pcb_flags & PCB_DBREGS) { reset_dbregs(); - pcb->pcb_flags &= ~PCB_DBREGS; + td->td_pcb->pcb_flags &= ~PCB_DBREGS; } } |