Module Name:    src
Committed By:   tsutsui
Date:           Sun Dec 18 03:46:02 UTC 2011

Modified Files:
        src/sys/arch/next68k/next68k: nextrom.c

Log Message:
PR port-next68k/45719 from Jaime Fournier:
 Fix RELOC() (awful VA -> PA conversion) usage introduced to appease gcc45
 in rev 1.22.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/next68k/next68k/nextrom.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/next68k/next68k/nextrom.c
diff -u src/sys/arch/next68k/next68k/nextrom.c:1.22 src/sys/arch/next68k/next68k/nextrom.c:1.23
--- src/sys/arch/next68k/next68k/nextrom.c:1.22	Sat Oct  1 15:59:01 2011
+++ src/sys/arch/next68k/next68k/nextrom.c	Sun Dec 18 03:46:02 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: nextrom.c,v 1.22 2011/10/01 15:59:01 chs Exp $	*/
+/*	$NetBSD: nextrom.c,v 1.23 2011/12/18 03:46:02 tsutsui Exp $	*/
 /*
  * Copyright (c) 1998 Darrin B. Jewell
  * All rights reserved.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nextrom.c,v 1.22 2011/10/01 15:59:01 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nextrom.c,v 1.23 2011/12/18 03:46:02 tsutsui Exp $");
 
 #include "opt_ddb.h"
 #include "opt_serial.h"
@@ -93,9 +93,9 @@ static char romprint_hextable[] = "01234
 #define ROM_PUTX(v) \
   do { \
     (*MONRELOC(putcptr,MG_putc)) \
-	(RELOC(romprint_hextable, const char *)[((v)>>4)&0xf]); \
+      (RELOC(romprint_hextable[((v)>>4)&0xf], char)); \
     (*MONRELOC(putcptr,MG_putc)) \
-	(RELOC(romprint_hextable, const char *)[(v)&0xf]); \
+      (RELOC(romprint_hextable[(v)&0xf], char)); \
 	} while(0);
 #else
 #define lookup_hex(v)  ((v)>9?('a'+(v)-0xa):('0'+(v)))

Reply via email to