diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-07-06 16:25:31 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-07-06 16:25:31 +0000 |
commit | e5377988a37d95f5696254d27aae2f60a99d2973 (patch) | |
tree | 3397ced887a1e189fbf14b40a9db4ece7ff7faf4 /sys | |
parent | b97678430ad0beaef07be4c3e07e17c237482a66 (diff) |
If -b specified as bootflag (-d was taken) enter DDB. If using a PC keyboard
this does not yet work as the keyboard is not enough setup to work even in
polled mode.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/alpha/alpha/machdep.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/sys/arch/alpha/alpha/machdep.c b/sys/arch/alpha/alpha/machdep.c index 8cd8d776dd1..63ca3802978 100644 --- a/sys/arch/alpha/alpha/machdep.c +++ b/sys/arch/alpha/alpha/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.19 1997/05/28 22:56:57 niklas Exp $ */ +/* $OpenBSD: machdep.c,v 1.20 1997/07/06 16:25:30 niklas Exp $ */ /* $NetBSD: machdep.c,v 1.61 1996/12/07 01:54:49 cgd Exp $ */ /* @@ -80,6 +80,13 @@ #include <machine/prom.h> #include <machine/cpuconf.h> +#ifdef DDB +#include <machine/db_machdep.h> +#include <ddb/db_access.h> +#include <ddb/db_sym.h> +#include <ddb/db_extern.h> +#endif + #include <net/netisr.h> #include <net/if.h> @@ -552,6 +559,11 @@ unknown_cputype: boothowto &= ~RB_SINGLE; break; + case 'b': /* Enter DDB as soon as the console is initialised */ + case 'B': + boothowto |= RB_KDB; + break; + case 'c': /* enter user kernel configuration */ case 'C': boothowto |= RB_CONFIG; @@ -600,9 +612,13 @@ unknown_cputype: void consinit() { - (*cpu_fn_switch->cons_init)(); pmap_unmap_prom(); +#ifdef DDB + ddb_init(); + if (boothowto & RB_KDB) + Debugger(); +#endif } void |