Module Name: src Committed By: christos Date: Mon Mar 7 00:28:36 UTC 2016
Modified Files: src/sys/arch/sparc64/dev: iommu.c Log Message: Better to panic! Otherwise we end in an endless loop. To generate a diff of this commit: cvs rdiff -u -r1.112 -r1.113 src/sys/arch/sparc64/dev/iommu.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/sparc64/dev/iommu.c diff -u src/sys/arch/sparc64/dev/iommu.c:1.112 src/sys/arch/sparc64/dev/iommu.c:1.113 --- src/sys/arch/sparc64/dev/iommu.c:1.112 Sun Mar 6 19:16:48 2016 +++ src/sys/arch/sparc64/dev/iommu.c Sun Mar 6 19:28:36 2016 @@ -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 @@ iommu_dvmamap_unload(bus_dma_tag_t t, bu 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 */