Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/aarch64/aarch64 Replace KDASSERT by panic.



details:   https://anonhg.NetBSD.org/src/rev/2b82836cfcd0
branches:  trunk
changeset: 433373:2b82836cfcd0
user:      maxv <maxv%NetBSD.org@localhost>
date:      Mon Sep 10 16:43:24 2018 +0000

description:
Replace KDASSERT by panic.

diffstat:

 sys/arch/aarch64/aarch64/pmap.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 0c761c214a5c -r 2b82836cfcd0 sys/arch/aarch64/aarch64/pmap.c
--- a/sys/arch/aarch64/aarch64/pmap.c   Mon Sep 10 15:14:50 2018 +0000
+++ b/sys/arch/aarch64/aarch64/pmap.c   Mon Sep 10 16:43:24 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.22 2018/09/10 15:14:50 maxv Exp $   */
+/*     $NetBSD: pmap.c,v 1.23 2018/09/10 16:43:24 maxv Exp $   */
 
 /*
  * Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.22 2018/09/10 15:14:50 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.23 2018/09/10 16:43:24 maxv Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_ddb.h"
@@ -577,7 +577,9 @@
                        break;
        }
 
-       KDASSERT(uvm_physseg_valid_p(bank));
+       if (!uvm_physseg_valid_p(bank)) {
+               panic("%s: no memory", __func__);
+       }
 
        /* Steal pages */
        pa = ptoa(uvm_physseg_get_avail_start(bank));



Home | Main Index | Thread Index | Old Index