Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/next68k/next68k PR port-next68k/45719 from Jaime Fo...
details: https://anonhg.NetBSD.org/src/rev/d0c93e0d972f
branches: trunk
changeset: 772099:d0c93e0d972f
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sun Dec 18 03:46:02 2011 +0000
description:
PR port-next68k/45719 from Jaime Fournier:
Fix RELOC() (awful VA -> PA conversion) usage introduced to appease gcc45
in rev 1.22.
diffstat:
sys/arch/next68k/next68k/nextrom.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 713a820290be -r d0c93e0d972f sys/arch/next68k/next68k/nextrom.c
--- a/sys/arch/next68k/next68k/nextrom.c Sun Dec 18 02:31:51 2011 +0000
+++ b/sys/arch/next68k/next68k/nextrom.c Sun Dec 18 03:46:02 2011 +0000
@@ -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 @@
#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)))
Home |
Main Index |
Thread Index |
Old Index