Fix NetBSD reset problem

git-svn-id: svn://coreboot.org/openbios/openbios-devel@187 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2008-07-05 16:57:17 +00:00
parent 36f50c20dc
commit a7bceec408
2 changed files with 3 additions and 2 deletions

View File

@@ -254,7 +254,7 @@ static int obp_nbputchar(int ch)
static void obp_reboot(char *str) static void obp_reboot(char *str)
{ {
extern volatile unsigned char *reset_reg; extern volatile unsigned int *reset_reg;
printk("rebooting (%s)\n", str); printk("rebooting (%s)\n", str);
*reset_reg = 1; *reset_reg = 1;

View File

@@ -1040,7 +1040,8 @@ ob_auxio_init(uint64_t base, uint64_t offset)
fword("finish-device"); fword("finish-device");
} }
volatile unsigned char *power_reg, *reset_reg; volatile unsigned char *power_reg;
volatile unsigned int *reset_reg;
static void static void
sparc32_reset_all(void) sparc32_reset_all(void)