From c74dc481330100e4923be19163bd6cbbc47d42ff Mon Sep 17 00:00:00 2001 From: enami Date: Thu, 17 May 2001 06:00:22 +0000 Subject: [PATCH] Use VRIP_SIU_ADDR instead of 0x0c000000 for base address of serial console or kgdb connection. --- sys/arch/hpcmips/vr/vr.c | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/sys/arch/hpcmips/vr/vr.c b/sys/arch/hpcmips/vr/vr.c index cd4365467670..a57872841912 100644 --- a/sys/arch/hpcmips/vr/vr.c +++ b/sys/arch/hpcmips/vr/vr.c @@ -1,4 +1,4 @@ -/* $NetBSD: vr.c,v 1.22 2001/04/18 11:07:28 sato Exp $ */ +/* $NetBSD: vr.c,v 1.23 2001/05/17 06:00:22 enami Exp $ */ /*- * Copyright (c) 1999 @@ -313,22 +313,19 @@ vr_cons_init() #if NCOM > 0 #ifdef KGDB /* if KGDB is defined, always use the serial port for KGDB */ - /* Serial console */ - if(com_vrip_cndb_attach( - system_bus_iot, 0x0c000000, 9600, VRCOM_FREQ, - (TTYDEF_CFLAG & ~(CSIZE | PARENB)) | CS8, 1)) - { + if (com_vrip_cndb_attach(system_bus_iot, VRIP_SIU_ADDR, 9600, + VRCOM_FREQ, (TTYDEF_CFLAG & ~(CSIZE | PARENB)) | CS8, 1)) { printf("%s(%d): can't init kgdb's serial port", - __FILE__, __LINE__); + __FILE__, __LINE__); } #else if (bootinfo->bi_cnuse & BI_CNUSE_SERIAL) { /* Serial console */ - if(com_vrip_cndb_attach( - system_bus_iot, 0x0c000000, CONSPEED, VRCOM_FREQ, - (TTYDEF_CFLAG & ~(CSIZE | PARENB)) | CS8, 0)) - { - printf("%s(%d): can't init serial console", __FILE__, __LINE__); + if (com_vrip_cndb_attach(system_bus_iot, + VRIP_SIU_ADDR, CONSPEED, VRCOM_FREQ, + (TTYDEF_CFLAG & ~(CSIZE | PARENB)) | CS8, 0)) { + printf("%s(%d): can't init serial console", + __FILE__, __LINE__); } else { return; }