Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/dev Better to panic! Otherwise we end in an...



details:   https://anonhg.NetBSD.org/src/rev/24bfd9cef491
branches:  trunk
changeset: 343958:24bfd9cef491
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Mar 07 00:28:36 2016 +0000

description:
Better to panic! Otherwise we end in an endless loop.

diffstat:

 sys/arch/sparc64/dev/iommu.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (31 lines):

diff -r 75fb739c969a -r 24bfd9cef491 sys/arch/sparc64/dev/iommu.c
--- a/sys/arch/sparc64/dev/iommu.c      Mon Mar 07 00:16:48 2016 +0000
+++ b/sys/arch/sparc64/dev/iommu.c      Mon Mar 07 00:28:36 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iommu.c,v 1.112 2016/03/07 00:16:48 christos Exp $     */
+/*     $NetBSD: iommu.c,v 1.113 2016/03/07 00:28:36 christos Exp $     */
 
 /*
  * Copyright (c) 1999, 2000 Matthew R. Green
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: iommu.c,v 1.112 2016/03/07 00:16:48 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: iommu.c,v 1.113 2016/03/07 00:28:36 christos Exp $");
 
 #include "opt_ddb.h"
 
@@ -746,10 +746,8 @@
        bus_size_t sgsize = map->_dm_dvmasize;
 
        /* Flush the iommu */
-       if (!map->_dm_dvmastart) {
-               printf("%s: error dvmastart is zero!\n", __func__);
-               return;
-       }
+       if (!map->_dm_dvmastart)
+               panic("%s: error dvmastart is zero!\n", __func__);
        iommu_remove(is, map->_dm_dvmastart, map->_dm_dvmasize);
 
        /* Flush the caches */



Home | Main Index | Thread Index | Old Index