diff options
author | aiju <devnull@localhost> | 2017-06-12 19:46:25 +0000 |
---|---|---|
committer | aiju <devnull@localhost> | 2017-06-12 19:46:25 +0000 |
commit | 3844090f3997aab26cb3d54c4cb837e278a04933 (patch) | |
tree | f1f498b5c3e94075964daa973c91a5bbf0218cd5 /sys/src/9/pc/mmu.c | |
parent | dae0f4d28d3ffa312cab5d751045b1bbab1d897d (diff) |
pc/pc64: reset DR7 in mmurelease
Diffstat (limited to 'sys/src/9/pc/mmu.c')
-rw-r--r-- | sys/src/9/pc/mmu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/9/pc/mmu.c b/sys/src/9/pc/mmu.c index 2e77aaee7..dc8546f6f 100644 --- a/sys/src/9/pc/mmu.c +++ b/sys/src/9/pc/mmu.c @@ -387,6 +387,8 @@ mmurelease(Proc* proc) proc->ldt = nil; proc->nldt = 0; } + if(proc->dr[7] != 0) + putdr7(0); } /* |