diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2022-06-30 09:38:23 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2022-06-30 09:38:23 +0000 |
commit | 7323c2f07444eb09a799f7b2492d71168a72bd1e (patch) | |
tree | 416cf8e9748d0aa700d3314e4c682bb9c25eb2b1 | |
parent | b6b4f70137ac6df61e1155295020cae5c61a6662 (diff) |
amd64 pmap: Zero out the EPTP on pmap_create
Non-EPT pmaps were picking up old EPTPs from previous owners.
This doesn't cause any problems but makes debugging harder.
ok dv@
-rw-r--r-- | sys/arch/amd64/amd64/pmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/pmap.c b/sys/arch/amd64/amd64/pmap.c index 2094002ab63..26e46770598 100644 --- a/sys/arch/amd64/amd64/pmap.c +++ b/sys/arch/amd64/amd64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.151 2022/06/29 14:24:29 dv Exp $ */ +/* $OpenBSD: pmap.c,v 1.152 2022/06/30 09:38:22 mlarkin Exp $ */ /* $NetBSD: pmap.c,v 1.3 2003/05/08 18:13:13 thorpej Exp $ */ /* @@ -1314,6 +1314,7 @@ pmap_create(void) pmap->pm_stats.wired_count = 0; pmap->pm_stats.resident_count = 1; /* count the PDP allocd below */ pmap->pm_type = PMAP_TYPE_NORMAL; + pmap->eptp = 0; /* allocate PDP */ |