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 Fix two fencepoint errors.
details: https://anonhg.NetBSD.org/src/rev/944c2cd9b941
branches: trunk
changeset: 784905:944c2cd9b941
user: matt <matt%NetBSD.org@localhost>
date: Wed Feb 13 23:09:39 2013 +0000
description:
Fix two fencepoint errors.
diffstat:
sys/arch/arm/broadcom/bcm53xx_board.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 18d26490eb63 -r 944c2cd9b941 sys/arch/arm/broadcom/bcm53xx_board.c
--- a/sys/arch/arm/broadcom/bcm53xx_board.c Wed Feb 13 23:08:45 2013 +0000
+++ b/sys/arch/arm/broadcom/bcm53xx_board.c Wed Feb 13 23:09:39 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bcm53xx_board.c,v 1.12 2013/02/12 02:38:53 matt Exp $ */
+/* $NetBSD: bcm53xx_board.c,v 1.13 2013/02/13 23:09:39 matt Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -34,7 +34,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: bcm53xx_board.c,v 1.12 2013/02/12 02:38:53 matt Exp $");
+__KERNEL_RCSID(1, "$NetBSD: bcm53xx_board.c,v 1.13 2013/02/13 23:09:39 matt Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -66,7 +66,7 @@
static struct cpu_softc cpu_softc;
-struct arm32_dma_range bcm53xx_dma_ranges[2] = {
+struct arm32_dma_range bcm53xx_dma_ranges[] = {
[0] = {
.dr_sysbase = 0x80000000,
.dr_busbase = 0x80000000,
@@ -85,7 +85,7 @@
_BUS_DMATAG_FUNCS,
};
-struct arm32_dma_range bcm53xx_coherent_dma_ranges[2] = {
+struct arm32_dma_range bcm53xx_coherent_dma_ranges[] = {
[0] = {
.dr_sysbase = 0x80000000,
.dr_busbase = 0x80000000,
@@ -523,7 +523,7 @@
void
bcm53xx_dma_bootstrap(psize_t memsize)
{
- if (memsize < 256*1024*1024) {
+ if (memsize <= 256*1024*1024) {
bcm53xx_dma_ranges[0].dr_len = memsize;
bcm53xx_coherent_dma_ranges[0].dr_len = memsize;
bcm53xx_dma_tag._nranges = 1;
Home |
Main Index |
Thread Index |
Old Index