Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/amlogic fix size of dmamem map
details: https://anonhg.NetBSD.org/src/rev/ce9ecf8dedcc
branches: trunk
changeset: 337558:ce9ecf8dedcc
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Apr 19 22:51:04 2015 +0000
description:
fix size of dmamem map
diffstat:
sys/arch/arm/amlogic/amlogic_sdhc.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b0934b8601e2 -r ce9ecf8dedcc sys/arch/arm/amlogic/amlogic_sdhc.c
--- a/sys/arch/arm/amlogic/amlogic_sdhc.c Sun Apr 19 21:28:37 2015 +0000
+++ b/sys/arch/arm/amlogic/amlogic_sdhc.c Sun Apr 19 22:51:04 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: amlogic_sdhc.c,v 1.5 2015/04/19 21:23:01 jmcneill Exp $ */
+/* $NetBSD: amlogic_sdhc.c,v 1.6 2015/04/19 22:51:04 jmcneill Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
#include "locators.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amlogic_sdhc.c,v 1.5 2015/04/19 21:23:01 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amlogic_sdhc.c,v 1.6 2015/04/19 22:51:04 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -226,7 +226,7 @@
}
KASSERT(rseg == 1);
- error = bus_dmamem_map(sc->sc_dmat, sc->sc_segs, rseg, PAGE_SIZE,
+ error = bus_dmamem_map(sc->sc_dmat, sc->sc_segs, rseg, MAXPHYS,
&sc->sc_bbuf, BUS_DMA_WAITOK);
if (error) {
device_printf(sc->sc_dev, "bus_dmamem_map failed\n");
Home |
Main Index |
Thread Index |
Old Index