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.
This commit is contained in:
scw 2002-08-26 10:55:39 +00:00
parent 0eb22d79b4
commit a1fda8f587
1 changed files with 13 additions and 3 deletions

View File

@ -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 <dev/cons.h>
#ifdef DDB
#include <sys/boot_flag.h>
#include <machine/db_machdep.h>
#include <ddb/db_extern.h>
#endif
#if NCOM > 0
#include <dev/ic/comreg.h>
#include <dev/ic/comvar.h>
@ -73,6 +79,7 @@ static bus_addr_t comaddr;
#if NSCIF > 0
#include <sh5/dev/pbridgereg.h>
#include <sh5/dev/scifreg.h>
#include <sh5/dev/scifvar.h>
@ -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