From a1fda8f587634cd687da0235b8e60743fafd5e6e Mon Sep 17 00:00:00 2001 From: scw Date: Mon, 26 Aug 2002 10:55:39 +0000 Subject: [PATCH] Call ddb_init() right after initialising the console. We have no symbols at this time (due to lack of a bootloader) so just hardcode symbol length to zero for now. --- sys/arch/evbsh5/evbsh5/cons_machdep.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/sys/arch/evbsh5/evbsh5/cons_machdep.c b/sys/arch/evbsh5/evbsh5/cons_machdep.c index 21c7c6051c87..a7b07902c39a 100644 --- a/sys/arch/evbsh5/evbsh5/cons_machdep.c +++ b/sys/arch/evbsh5/evbsh5/cons_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: cons_machdep.c,v 1.1 2002/07/05 13:31:40 scw Exp $ */ +/* $NetBSD: cons_machdep.c,v 1.2 2002/08/26 10:55:39 scw Exp $ */ /* * Copyright 2002 Wasabi Systems, Inc. @@ -60,6 +60,12 @@ #include +#ifdef DDB +#include +#include +#include +#endif + #if NCOM > 0 #include #include @@ -73,6 +79,7 @@ static bus_addr_t comaddr; #if NSCIF > 0 +#include #include #include @@ -110,13 +117,16 @@ consinit(void) cninit(); #ifdef DDB +#if 0 { extern int end; extern int *esym; - ddb_init((int)esym - (int)&end - sizeof(Elf32_Ehdr), - (void *)&end, esym); + ddb_init((int)esym - (int)&end, (void *)&end, esym); } +#else + ddb_init(0, NULL, NULL); +#endif if (boothowto & RB_KDB) Debugger(); #endif