Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/broadcom Replace use of MEMSIZE with functional...
details: https://anonhg.NetBSD.org/src/rev/5ebb1e799e59
branches: trunk
changeset: 781072:5ebb1e799e59
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Thu Aug 16 23:22:44 2012 +0000
description:
Replace use of MEMSIZE with functionally equivilant,
yet perhaps no-more-proper, physmem*PAGE_SIZE.
diffstat:
sys/arch/arm/broadcom/bcm2835_obio.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r c2d4cc162e4a -r 5ebb1e799e59 sys/arch/arm/broadcom/bcm2835_obio.c
--- a/sys/arch/arm/broadcom/bcm2835_obio.c Thu Aug 16 21:46:18 2012 +0000
+++ b/sys/arch/arm/broadcom/bcm2835_obio.c Thu Aug 16 23:22:44 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bcm2835_obio.c,v 1.1 2012/07/26 06:21:57 skrll Exp $ */
+/* $NetBSD: bcm2835_obio.c,v 1.2 2012/08/16 23:22:44 jakllsch Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm2835_obio.c,v 1.1 2012/07/26 06:21:57 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm2835_obio.c,v 1.2 2012/08/16 23:22:44 jakllsch Exp $");
#include "opt_broadcom.h"
#include "locators.h"
@@ -137,7 +137,7 @@
sc->sc_dmarange.dr_sysbase = 0;
sc->sc_dmarange.dr_busbase = 0xc0000000; /* 0x40000000 if L2 */
- sc->sc_dmarange.dr_len = MEMSIZE * 1024 * 1024;
+ sc->sc_dmarange.dr_len = physmem / PAGE_SIZE; /* XXXJAK */
bcm2835_bus_dma_tag._ranges = &sc->sc_dmarange;
bcm2835_bus_dma_tag._nranges = 1;
Home |
Main Index |
Thread Index |
Old Index