summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-02-25 16:57:25 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-02-25 16:57:25 +0000
commit9c39f6d3eec79bc73f4e96ebe036897108a23ab0 (patch)
treed93d695210a925cd17a7fee93a3cf630c0f8f635
parenta3a360b0caad9bebcf8fb7562dc903e20161ae48 (diff)
Let pmap_remove_mapping() do its job correctly if option DIAGNOSTIC is
not defined (such as on RAMDISK kernels). Oops.
-rw-r--r--sys/arch/m68k/m68k/pmap_motorola.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/m68k/m68k/pmap_motorola.c b/sys/arch/m68k/m68k/pmap_motorola.c
index 4f537cc9155..41cec85a18b 100644
--- a/sys/arch/m68k/m68k/pmap_motorola.c
+++ b/sys/arch/m68k/m68k/pmap_motorola.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap_motorola.c,v 1.22 2003/01/27 19:37:30 miod Exp $ */
+/* $OpenBSD: pmap_motorola.c,v 1.23 2003/02/25 16:57:24 miod Exp $ */
/*
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -2145,8 +2145,8 @@ pmap_remove_mapping(pmap, va, pte, flags)
paddr_t pa;
pa = pmap_pte_pa(pmap_pte(pmap_kernel(), ptpva));
-#ifdef DIAGNOSTIC
pg = PHYS_TO_VM_PAGE(pa);
+#ifdef DIAGNOSTIC
if (pg == NULL)
panic("pmap_remove_mapping: unmanaged PT page");
pv = pg_to_pvh(pg);