In _bus_dmamem_alloc_range(), respect the high end of the caller's range.
This commit is contained in:
parent
f40ce8cd84
commit
eeffadffd5
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus_dma.c,v 1.50 2002/06/02 14:44:36 drochner Exp $ */
|
||||
/* $NetBSD: bus_dma.c,v 1.51 2002/10/09 21:35:33 nathanw Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -39,7 +39,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.50 2002/06/02 14:44:36 drochner Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.51 2002/10/09 21:35:33 nathanw Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -444,8 +444,6 @@ _bus_dmamem_alloc_range(bus_dma_tag_t t, bus_size_t size, bus_size_t alignment,
|
|||
/* Always round the size. */
|
||||
size = round_page(size);
|
||||
|
||||
high = avail_end - PAGE_SIZE;
|
||||
|
||||
/*
|
||||
* Allocate pages from the VM system.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue