MFi386: 1.258: Minor cleanups
Approved by: re (blanket i386<->amd64 sync)
This commit is contained in:
parent
4da0d332f4
commit
a202ff9ebf
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user