Subject: Re: BREAK on console ignored
To: None <port-sparc@netbsd.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: port-sparc
Date: 01/03/2002 18:04:24
On Thu, Jan 03, 2002 at 02:52:16 -0800, Simon J. Gerraty wrote:
> This is an SS20 with serial console.
> Once the kernel has started booting though, BREAK is ignored.
> My normal kernel does not have either of DDB or KGDB defined.
>
> suggests that zs is being used for the console. Here I see zs_abort()
> which looks like it should end up calling prom_abort, but I don't see
> where zs_abort is hooked in.
On Thu, Jan 03, 2002 at 08:51:43 -0600, Ron Roskens wrote:
> A new method for catching a "break" signal was added in -current.
>
> man cnmagic
cnmagic calls console_debugger when triggered (that's the default for
cn_trap macro it uses). In a kernel w/out DDB/KGDB it's just a no-op.
Perhaps for sparc, where we always have a PROM to break into, we
should just drop into PROM in that case (like sun2 and sun3 do -
cf. sys/systm.h).
SY, Uwe
--
uwe@ptc.spbu.ru | Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen