PR port-next68k/45719 from Jaime Fournier:
Fix RELOC() (awful VA -> PA conversion) usage introduced to appease gcc45 in rev 1.22.
This commit is contained in:
parent
12f78b170e
commit
09525416c6
@ -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 @@ 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)))
|
||||
|
Loading…
Reference in New Issue
Block a user