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: Me Me <jaimef%linbsd.org@localhost>
To: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
Cc: gnats-bugs%netbsd.org@localhost,
 jaimef%mauthesis.com@localhost
Subject: Re: port-next68k/45719: src/sys/next68k/next68k/nextrom.c 1.22 
changecauses panic on boot
Date: Sat, 17 Dec 2011 13:11:14 -0800

 It works!
 I tested this on latest HEAD and it works.
 Thanks for the quick fix.
 
 On Dec 17, 2011, at 9:47 AM, Izumi Tsutsui wrote:
 
 >>> 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