Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/mips fix incorrect variable; (hi matt)



details:   https://anonhg.NetBSD.org/src/rev/ce0bbeecca45
branches:  trunk
changeset: 793332:ce0bbeecca45
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Feb 05 19:09:06 2014 +0000

description:
fix incorrect variable; (hi matt)

diffstat:

 sys/arch/mips/mips/bus_dma.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8cd258ef137e -r ce0bbeecca45 sys/arch/mips/mips/bus_dma.c
--- a/sys/arch/mips/mips/bus_dma.c      Wed Feb 05 19:07:16 2014 +0000
+++ b/sys/arch/mips/mips/bus_dma.c      Wed Feb 05 19:09:06 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_dma.c,v 1.29 2014/02/03 19:18:59 matt Exp $        */
+/*     $NetBSD: bus_dma.c,v 1.30 2014/02/05 19:09:06 christos Exp $    */
 
 /*-
  * Copyright (c) 1997, 1998, 2001 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.29 2014/02/03 19:18:59 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.30 2014/02/05 19:09:06 christos Exp $");
 
 #define _MIPS_BUS_DMA_PRIVATE
 
@@ -641,7 +641,7 @@
                        kva = (void *)MIPS_PHYS_TO_XKPHYS_UNCACHED(segs->ds_addr);
                }
 #else
-               if (ds->ds_addr >= MIPS_PHYS_MASK)
+               if (segs->ds_addr >= MIPS_PHYS_MASK)
                        return EFBIG;
                if (cached_p) {
                        kva = (void *)MIPS_PHYS_TO_KSEG0(segs->ds_addr);



Home | Main Index | Thread Index | Old Index