From owner-freebsd-current Thu Jun 24 0:41:22 1999 Delivered-To: freebsd-current@freebsd.org Received: from outmail.utsunomiya-u.ac.jp (outmail.utsunomiya-u.ac.jp [160.12.196.3]) by hub.freebsd.org (Postfix) with ESMTP id A2CC114E5D for ; Thu, 24 Jun 1999 00:41:18 -0700 (PDT) (envelope-from yokota@zodiac.mech.utsunomiya-u.ac.jp) Received: from zodiac.mech.utsunomiya-u.ac.jp (IDENT:4Yuk8FpK/ThA8fldlw4E1pABfuubeSqN@zodiac.mech.utsunomiya-u.ac.jp [160.12.42.1]) by outmail.utsunomiya-u.ac.jp (8.9.3/3.7Wpl2) with ESMTP id QAA05143; Thu, 24 Jun 1999 16:40:40 +0900 (JST) Received: from zodiac.mech.utsunomiya-u.ac.jp (zodiac.mech.utsunomiya-u.ac.jp [160.12.42.1]) by zodiac.mech.utsunomiya-u.ac.jp (8.7.6+2.6Wbeta7/3.4W/zodiac-May96) with ESMTP id QAA13876; Thu, 24 Jun 1999 16:44:50 +0900 (JST) Message-Id: <199906240744.QAA13876@zodiac.mech.utsunomiya-u.ac.jp> To: Tim Tsai Cc: freebsd-current@freebsd.org, yokota@zodiac.mech.utsunomiya-u.ac.jp Subject: Re: sc0 and serial console broken? In-reply-to: Your message of "Thu, 24 Jun 1999 02:05:09 EST." <19990624015057.A17246@futuresouth.com> References: <19990624015057.A17246@futuresouth.com> Date: Thu, 24 Jun 1999 16:44:50 +0900 From: Kazutaka YOKOTA Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>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