>>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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to