NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-next68k/45719: src/sys/next68k/next68k/nextrom.c 1.22 change causes panic on boot
The following reply was made to PR port-next68k/45719; it has been noted by
GNATS.
From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: port-next68k/45719: src/sys/next68k/next68k/nextrom.c 1.22 change
causes panic on boot
Date: Sat, 17 Dec 2011 18:48:30 +0900
> >Synopsis: src/sys/next68k/next68k/nextrom.c 1.22 change causes panic
> >on boot
:
> >Fix:
> Revert 1.22
How about this instead?
Index: nextrom.c
===================================================================
RCS file: /cvsroot/src/sys/arch/next68k/next68k/nextrom.c,v
retrieving revision 1.22
diff -u -p -r1.22 nextrom.c
--- nextrom.c 1 Oct 2011 15:59:01 -0000 1.22
+++ nextrom.c 17 Dec 2011 09:46:11 -0000
@@ -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[0], const char *)[((v)>>4)&0xf]); \
(*MONRELOC(putcptr,MG_putc)) \
- (RELOC(romprint_hextable, const char *)[(v)&0xf]); \
+ (RELOC(romprint_hextable[0], const char *)[(v)&0xf]); \
} while(0);
#else
#define lookup_hex(v) ((v)>9?('a'+(v)-0xa):('0'+(v)))
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index