Date: Mon, 20 Dec 2010 17:26:15 -0500 From: John Baldwin <jhb@freebsd.org> To: Ivan Klymenko <fidaj@ukr.net> Cc: freebsd-current@freebsd.org Subject: Re: dev/psm0 not found Message-ID: <201012201726.15729.jhb@freebsd.org> In-Reply-To: <20101220233857.762cabc8@ukr.net> References: <20101218203020.1cec8dc7@ukr.net> <201012201602.46538.jhb@freebsd.org> <20101220233857.762cabc8@ukr.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, December 20, 2010 4:38:57 pm Ivan Klymenko wrote: > =D0=92 Mon, 20 Dec 2010 16:02:46 -0500 > John Baldwin <jhb@freebsd.org> =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >=20 > Not working :( This was debugging, not a fix. Try this possible fix: Index: atkbdc_isa.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =2D-- atkbdc_isa.c (revision 216591) +++ atkbdc_isa.c (working copy) @@ -272,14 +272,16 @@ * list entry so we can use a standard bus_get_resource() * method. */ =2D if (sc->irq =3D=3D NULL) { =2D if (resource_int_value(name, unit, "irq", &t) !=3D 0) =2D t =3D -1; =2D } else =2D t =3D rman_get_start(sc->irq); =2D if (t > 0) =2D resource_list_add(&ivar->resources, SYS_RES_IRQ, ivar->rid, =2D t, t, 1); + if (order =3D=3D KBDC_RID_KBD) { + if (sc->irq =3D=3D NULL) { + if (resource_int_value(name, unit, "irq", &t) !=3D 0) + t =3D -1; + } else + t =3D rman_get_start(sc->irq); + if (t > 0) + resource_list_add(&ivar->resources, SYS_RES_IRQ, + ivar->rid, t, t, 1); + } =20 if (resource_disabled(name, unit)) device_disable(child); =2D-=20 John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012201726.15729.jhb>