Subject: Re: RFC: switching to the console on panic
To: Julio M. Merino Vidal <jmmv84@gmail.com>
From: Michael <macallan18@earthlink.net>
List: tech-kern
Date: 02/11/2006 12:33:34
--Signature_Sat__11_Feb_2006_12_33_34_-0500_NcGAtFpxyfqpCB/H
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello,

> > > a small patch proposal to have ddb() switch to the console when
> > > invoked. So when working on say ttyE5 and a panic occures, it'll
> > > switch to the console where it prints the ddb prompt and backtrack
> > > if any.
> > >
> > > Avoids confusion mainly and prevents ppl. from typing in stuff and
> > > not understanding why the program is not responding.
> >
> > I don't think this is very useful - you can still type Ctrl-Alt-1
> > to switch to the console.
>=20
> Humm, really?  I've hit many panics and not been able to switch to the
> console with ctrl-alt-f1, thus having to blindly type sync or
> whatever. Maybe this changed lately?

It didn't. And it certainly doesn't work on - say - sparc64.
I did a (sort of) similar hack to force the ffb driver back into
WSDISPLAY_MODE_EMUL when entering ddb (easy because we never change
video modes) but a generic hook to enforce a working console when
entering ddb would be preferrable.

have fun
Michael

--Signature_Sat__11_Feb_2006_12_33_34_-0500_NcGAtFpxyfqpCB/H
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBQ+4f7spnzkX8Yg2nAQKA7wf+P/Onvyjth7DXF+C4bYDHOLhN6IWV9UO7
gCLjcdkIKY2beja1S40Nbch71XyrJtcjDGwpiYL+/Tp3j0HzDK4Vpv5jXGh2hoHv
FPJUQv2yubEq52YwEAIi7iTe3jb8LxoZRw1YFMcvQBO2kl4bt4Wnvw2MeM7ntBFn
Uc4kaQTKR/slxNDE9Z6RXF1rsNrTZwm9oj8rCRfj9aT0E+72/ZeoqRaoCew0lUab
ysMXn9nzYXObimYiYZvqsdrO408eOrD33aR9/wWB/pqnuyfI01FFqjInjMZ7fiJa
bxDiFMyZTY7plqxuGNVW4GqWK0+ZX73nQTyoZDTOarpQlmrXt3SlzA==
=+LCQ
-----END PGP SIGNATURE-----

--Signature_Sat__11_Feb_2006_12_33_34_-0500_NcGAtFpxyfqpCB/H--