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 changecauses 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: jaimef%mauthesis.com@localhost, jaimef%linbsd.org@localhost,
tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: port-next68k/45719: src/sys/next68k/next68k/nextrom.c 1.22
changecauses
panic on boot
Date: Sun, 18 Dec 2011 02:47:28 +0900
> > How about this instead?
:
> With this patch it still gets an
> "Exception #3 (0xc) at 0x1000374"
Ah, ok, please try this one:
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 17:44:02 -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[((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)))
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index