Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/dev Fixed compiler warnings when CV_INT_NUM =...



details:   https://anonhg.NetBSD.org/src/rev/eddc179fa83a
branches:  trunk
changeset: 751260:eddc179fa83a
user:      phx <phx%NetBSD.org@localhost>
date:      Sat Jan 30 16:49:14 2010 +0000

description:
Fixed compiler warnings when CV_INT_NUM == 2 or CV64CONSOLE is not defined.

diffstat:

 sys/arch/amiga/dev/grf_cv.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 43fa78c04a75 -r eddc179fa83a sys/arch/amiga/dev/grf_cv.c
--- a/sys/arch/amiga/dev/grf_cv.c       Sat Jan 30 16:47:05 2010 +0000
+++ b/sys/arch/amiga/dev/grf_cv.c       Sat Jan 30 16:49:14 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: grf_cv.c,v 1.48 2009/10/26 19:16:54 cegger Exp $ */
+/*     $NetBSD: grf_cv.c,v 1.49 2010/01/30 16:49:14 phx Exp $ */
 
 /*
  * Copyright (c) 1995 Michael Teske
@@ -33,7 +33,7 @@
 #include "opt_amigacons.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: grf_cv.c,v 1.48 2009/10/26 19:16:54 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: grf_cv.c,v 1.49 2010/01/30 16:49:14 phx Exp $");
 
 #include "grfcv.h"
 #if NGRFCV > 0
@@ -595,7 +595,7 @@
         * Set the roxxler register to use interrupt #2, not #6.
         */
 #if CV_INT_NUM == 2
-       cv_write_port(0x8080, ba - 0x02000000);
+       cv_write_port(0x8080, (volatile char*)ba - 0x02000000);
 #endif
 
        /* Enable board interrupts */
@@ -910,7 +910,7 @@
 
            case GM_GRFOFF:
 #ifndef CV64CONSOLE
-               cvscreen(1, gp->g_regkva - 0x02000000);
+               cvscreen(1, (volatile char *)gp->g_regkva - 0x02000000);
 #else
                cv_load_mon(gp, &cvconsole_mode);
                ite_reinit(gp->g_itedev);



Home | Main Index | Thread Index | Old Index