KASSERT that the pmap_extract works in _bus_dmamap_load_buffer
This commit is contained in:
parent
ebb445db43
commit
e231c02e1c
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mainbus.c,v 1.35 2006/10/25 07:07:48 skrll Exp $ */
|
||||
/* $NetBSD: mainbus.c,v 1.36 2006/10/30 16:22:42 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
|
||||
@ -70,7 +70,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.35 2006/10/25 07:07:48 skrll Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.36 2006/10/30 16:22:42 skrll Exp $");
|
||||
|
||||
#include "locators.h"
|
||||
#include "opt_power_switch.h"
|
||||
@ -1395,10 +1395,12 @@ _bus_dmamap_load_buffer(bus_dma_tag_t t, bus_dmamap_t map, void *buf,
|
||||
bmask = ~(map->_dm_boundary - 1);
|
||||
|
||||
for (seg = *segp; buflen > 0; ) {
|
||||
boolean_t ok;
|
||||
/*
|
||||
* Get the physical address for this segment.
|
||||
*/
|
||||
(void) pmap_extract(pmap, vaddr, &curaddr);
|
||||
ok = pmap_extract(pmap, vaddr, &curaddr);
|
||||
KASSERT(ok == TRUE);
|
||||
|
||||
/*
|
||||
* Compute the segment size, and adjust counts.
|
||||
|
Loading…
Reference in New Issue
Block a user