diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2004-07-22 15:50:19 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2004-07-22 15:50:19 +0000 |
commit | 0d7aa519504a62719dabc1f10b1850cb07527bbc (patch) | |
tree | cae180d05a4df977bbf9f192bc81e0d8e62a0bd5 /sys | |
parent | 9b0b5e19d5838a0b76981b51bd903a5cf5f338d2 (diff) |
Change a printf+Debugger pair into a panic.
Debugger calls in the middle of the code are evil because they don't
respect the ddb.panic sysctl and might leave critical machines hung instead
of quickly rebooting them.
requested by tedu@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/pmap.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/amd64/amd64/pmap.c b/sys/arch/amd64/amd64/pmap.c index 8586c211d66..b58008e1d6f 100644 --- a/sys/arch/amd64/amd64/pmap.c +++ b/sys/arch/amd64/amd64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.6 2004/07/22 11:19:14 art Exp $ */ +/* $OpenBSD: pmap.c,v 1.7 2004/07/22 15:50:18 art Exp $ */ /* $NetBSD: pmap.c,v 1.3 2003/05/08 18:13:13 thorpej Exp $ */ /* @@ -2520,9 +2520,8 @@ pmap_remove_pte(pmap, ptp, pte, va, cpumaskp, flags) if ((opte & PG_PVLIST) == 0) { #ifdef DIAGNOSTIC if (vm_physseg_find(btop(opte & PG_FRAME), &off) != -1) { - printf("pmap_remove_pte: managed page without " - "PG_PVLIST for 0x%lx\n", va); - Debugger(); + panic("pmap_remove_pte: managed page without " + "PG_PVLIST for 0x%lx", va); } #endif return(TRUE); |