From 09525416c6a7f3c73e8aeee907857f356a912279 Mon Sep 17 00:00:00 2001 From: tsutsui Date: Sun, 18 Dec 2011 03:46:02 +0000 Subject: [PATCH] PR port-next68k/45719 from Jaime Fournier: Fix RELOC() (awful VA -> PA conversion) usage introduced to appease gcc45 in rev 1.22. --- sys/arch/next68k/next68k/nextrom.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/arch/next68k/next68k/nextrom.c b/sys/arch/next68k/next68k/nextrom.c index c7b6047fe5a6..c89b38f87192 100644 --- a/sys/arch/next68k/next68k/nextrom.c +++ b/sys/arch/next68k/next68k/nextrom.c @@ -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 -__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[] = "0123456789abcdef@"; #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)))