summaryrefslogtreecommitdiff
path: root/sys/arch/arm64
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2019-07-13 21:47:07 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2019-07-13 21:47:07 +0000
commit327752eecb3e454051f3854d16d5859f3aac2da0 (patch)
tree5c158f215d93fd80a214b5447fd1d89b899c6ea0 /sys/arch/arm64
parent9864ec58b5403bcb30a7d06b8d8f1be1c14b818d (diff)
Panic for missing vp1 entry, do not panic for missing vp2 entry twice.
Fix print on subsequent line.
Diffstat (limited to 'sys/arch/arm64')
-rw-r--r--sys/arch/arm64/arm64/pmap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/arm64/arm64/pmap.c b/sys/arch/arm64/arm64/pmap.c
index 982d38fa333..fb46ca85841 100644
--- a/sys/arch/arm64/arm64/pmap.c
+++ b/sys/arch/arm64/arm64/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.65 2019/07/13 21:31:59 drahn Exp $ */
+/* $OpenBSD: pmap.c,v 1.66 2019/07/13 21:47:06 drahn Exp $ */
/*
* Copyright (c) 2008-2009,2014-2016 Dale Rahn <drahn@dalerahn.com>
*
@@ -1668,8 +1668,8 @@ pmap_pte_remove(struct pte_desc *pted, int remove_pted)
vp1 = pm->pm_vp.l0->vp[VP_IDX0(pted->pted_va)];
else
vp1 = pm->pm_vp.l1;
- if (vp1->vp[VP_IDX1(pted->pted_va)] == NULL) {
- panic("have a pted, but missing the l2 for %lx va pmap %p",
+ if (vp1 == NULL) {
+ panic("have a pted, but missing the l1 for %lx va pmap %p",
pted->pted_va, pm);
}
vp2 = vp1->vp[VP_IDX1(pted->pted_va)];
@@ -1679,7 +1679,7 @@ pmap_pte_remove(struct pte_desc *pted, int remove_pted)
}
vp3 = vp2->vp[VP_IDX2(pted->pted_va)];
if (vp3 == NULL) {
- panic("have a pted, but missing the l2 for %lx va pmap %p",
+ panic("have a pted, but missing the l3 for %lx va pmap %p",
pted->pted_va, pm);
}
vp3->l3[VP_IDX3(pted->pted_va)] = 0;