Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh5/sh5 Cast to caddr_t via intptr_t.



details:   https://anonhg.NetBSD.org/src/rev/74df158b2453
branches:  trunk
changeset: 537938:74df158b2453
user:      scw <scw%NetBSD.org@localhost>
date:      Tue Oct 08 15:56:13 2002 +0000

description:
Cast to caddr_t via intptr_t.

diffstat:

 sys/arch/sh5/sh5/bus_dma.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 29f6fa5468b1 -r 74df158b2453 sys/arch/sh5/sh5/bus_dma.c
--- a/sys/arch/sh5/sh5/bus_dma.c        Tue Oct 08 15:55:07 2002 +0000
+++ b/sys/arch/sh5/sh5/bus_dma.c        Tue Oct 08 15:56:13 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_dma.c,v 1.5 2002/10/04 09:20:20 scw Exp $  */
+/*     $NetBSD: bus_dma.c,v 1.6 2002/10/08 15:56:13 scw Exp $  */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.5 2002/10/04 09:20:20 scw Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.6 2002/10/08 15:56:13 scw Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -825,7 +825,8 @@
                 * XXXSCW: What about BUS_DMA_COHERENT ??
                 */
 
-               return (sh5_btop((caddr_t)segs[i]._ds_cpuaddr + off));
+               return (sh5_btop((caddr_t)(intptr_t)(segs[i]._ds_cpuaddr +
+                   off)));
        }
 
        /* Page not found. */



Home | Main Index | Thread Index | Old Index