Date: Thu, 24 Jun 1999 16:44:50 +0900 From: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> To: Tim Tsai <tim@futuresouth.com> Cc: freebsd-current@freebsd.org, yokota@zodiac.mech.utsunomiya-u.ac.jp Subject: Re: sc0 and serial console broken? Message-ID: <199906240744.QAA13876@zodiac.mech.utsunomiya-u.ac.jp> In-Reply-To: Your message of "Thu, 24 Jun 1999 02:05:09 EST." <19990624015057.A17246@futuresouth.com> References: <19990624015057.A17246@futuresouth.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>>From source cvsup on 6/23/99, the kernel traps on boot near sc0. I tried >every variation of the kernel I can think of, including GENERIC, and same >thing. I finally changed to vt0 and it booted up fine. A bug was found earlier today in syscons_isa.c. Apply the following patch to /sys/isa/syscons_isa.c and see if it works. Kazu Index: syscons_isa.c =================================================================== RCS file: /src/CVS/src/sys/isa/syscons_isa.c,v retrieving revision 1.5 diff -u -r1.5 syscons_isa.c --- syscons_isa.c 1999/06/22 14:13:41 1.5 +++ syscons_isa.c 1999/06/24 01:24:22 @@ -79,7 +79,7 @@ static driver_t sc_driver = { SC_DRIVER_NAME, sc_methods, - 1, /* XXX */ + sizeof(sc_softc_t), }; static sc_softc_t main_softc = { 0, 0, 0, -1, NULL, -1, NULL, }; @@ -125,7 +125,7 @@ main_softc.unit = unit; return &main_softc; } else { - sc = (sc_softc_t *)devclass_get_softc(sc_devclass, unit); + sc = (sc_softc_t *)device_get_softc(devclass_get_device(sc_devclass, unit)); if (!(sc->flags & SC_INIT_DONE)) { sc->unit = unit; sc->keyboard = -1; @@ -148,7 +148,7 @@ return sc; units = devclass_get_maxunit(sc_devclass); for (i = 0; i < units; ++i) { - sc = (sc_softc_t *)devclass_get_softc(sc_devclass, i); + sc = (sc_softc_t *)device_get_softc(devclass_get_device(sc_devclass, i)); if (sc == NULL) continue; if (((adp == NULL) || (adp == sc->adp)) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906240744.QAA13876>