Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 Don't refer to physical_{start,end} here ...
details: https://anonhg.NetBSD.org/src/rev/4795c72af973
branches: trunk
changeset: 373733:4795c72af973
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Feb 25 08:05:46 2023 +0000
description:
Don't refer to physical_{start,end} here and just pass minimum (0UL)
address and maximum (~0UL) physical address. The values are passed
through to uvm_pglistalloc which knows about the RAM ranges.
diffstat:
sys/arch/arm/arm32/bus_dma.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diffs (38 lines):
diff -r 79acb31cefa1 -r 4795c72af973 sys/arch/arm/arm32/bus_dma.c
--- a/sys/arch/arm/arm32/bus_dma.c Sat Feb 25 08:00:35 2023 +0000
+++ b/sys/arch/arm/arm32/bus_dma.c Sat Feb 25 08:05:46 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_dma.c,v 1.138 2022/10/11 22:03:37 andvar Exp $ */
+/* $NetBSD: bus_dma.c,v 1.139 2023/02/25 08:05:46 skrll Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2020 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
#include "opt_cputypes.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.138 2022/10/11 22:03:37 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.139 2023/02/25 08:05:46 skrll Exp $");
#include <sys/param.h>
@@ -1327,9 +1327,6 @@
* by bus-specific DMA memory allocation functions.
*/
-extern paddr_t physical_start;
-extern paddr_t physical_end;
-
int
_bus_dmamem_alloc(bus_dma_tag_t t, bus_size_t size, bus_size_t alignment,
bus_size_t boundary, bus_dma_segment_t *segs, int nsegs, int *rsegs,
@@ -1359,8 +1356,7 @@
}
} else {
error = _bus_dmamem_alloc_range(t, size, alignment, boundary,
- segs, nsegs, rsegs, flags, trunc_page(physical_start),
- trunc_page(physical_end));
+ segs, nsegs, rsegs, flags, 0UL, ~0UL);
}
#ifdef DEBUG_DMA
Home |
Main Index |
Thread Index |
Old Index