Date: Mon, 20 Dec 2010 14:40:44 -0800 From: David Wolfskill <david@catwhisker.org> To: John Baldwin <jhb@freebsd.org> Cc: Ivan Klymenko <fidaj@ukr.net>, freebsd-current@freebsd.org Subject: Re: dev/psm0 not found Message-ID: <20101220224044.GG1494@albert.catwhisker.org> In-Reply-To: <201012201726.15729.jhb@freebsd.org> References: <20101218203020.1cec8dc7@ukr.net> <201012201602.46538.jhb@freebsd.org> <20101220233857.762cabc8@ukr.net> <201012201726.15729.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Mon, Dec 20, 2010 at 05:26:15PM -0500, John Baldwin wrote:
> On Monday, December 20, 2010 4:38:57 pm Ivan Klymenko wrote:
> > ?? Mon, 20 Dec 2010 16:02:46 -0500
> > John Baldwin <jhb@freebsd.org> ??????????:
> >
> > Not working :(
>
> This was debugging, not a fix. Try this possible fix:
>
> Index: atkbdc_isa.c
> ===================================================================
> --- 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.
> */
> - if (sc->irq == NULL) {
> - if (resource_int_value(name, unit, "irq", &t) != 0)
> - t = -1;
> - } else
> - t = rman_get_start(sc->irq);
> - if (t > 0)
> - resource_list_add(&ivar->resources, SYS_RES_IRQ, ivar->rid,
> - t, t, 1);
> + if (order == KBDC_RID_KBD) {
> + if (sc->irq == NULL) {
> + if (resource_int_value(name, unit, "irq", &t) != 0)
> + t = -1;
> + } else
> + t = rman_get_start(sc->irq);
> + if (t > 0)
> + resource_list_add(&ivar->resources, SYS_RES_IRQ,
> + ivar->rid, t, t, 1);
> + }
>
> if (resource_disabled(name, unit))
> device_disable(child);
Worked for me: FreeBSD 9.0-CURRENT #81 r216588M: Mon Dec 20 14:35:37 PST 2010
Peace,
david
--
David H. Wolfskill david@catwhisker.org
Depriving a girl or boy of an opportunity for education is evil.
See http://www.catwhisker.org/~david/publickey.gpg for my public key.
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (FreeBSD)
iEYEARECAAYFAk0P22oACgkQmprOCmdXAD0JfACfUKzph2xmaYmwCusfEn8jg/Bz
kUoAn0xpQKxacGi3o466EDyaOmmkDoYI
=fWLF
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101220224044.GG1494>
