pc/pc64: reset DR7 in mmurelease

This commit is contained in:
aiju 2017-06-12 19:46:25 +00:00
parent dae0f4d28d
commit 3844090f39
2 changed files with 4 additions and 0 deletions

View file

@ -387,6 +387,8 @@ mmurelease(Proc* proc)
proc->ldt = nil;
proc->nldt = 0;
}
if(proc->dr[7] != 0)
putdr7(0);
}
/*

View file

@ -425,6 +425,8 @@ mmurelease(Proc *proc)
proc->kmapcount = proc->kmapindex = 0;
}
mmufree(proc);
if(proc->dr[7] != 0)
putdr7(0);
taskswitch((uintptr)m+MACHSIZE);
}