pc/pc64: reset DR7 in mmurelease
This commit is contained in:
parent
dae0f4d28d
commit
3844090f39
2 changed files with 4 additions and 0 deletions
|
@ -387,6 +387,8 @@ mmurelease(Proc* proc)
|
|||
proc->ldt = nil;
|
||||
proc->nldt = 0;
|
||||
}
|
||||
if(proc->dr[7] != 0)
|
||||
putdr7(0);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue