Re: pnp code and irq 2 broken

From: M. Warner Losh (imp_at_bsdimp.com)
Date: 08/28/03

  • Next message: John Hay: "Re: pnp code and irq 2 broken"
    Date: Wed, 27 Aug 2003 22:40:45 -0600 (MDT)
    To: jhay@icomtek.csir.co.za
    
    

    In message: <20030827054550.GA53143@zibbi.icomtek.csir.co.za>
                John Hay <jhay@icomtek.csir.co.za> writes:
    : I have worked around it with this crude patch below. Crude because:
    : 1) I don't know if it should be an i386 only fix, and
    : 2) I used 0x04 directly, maybe IRQ_SLAVE from i386/isa/icu.h or
    : some other define should be used?

    I'd change 0x04 to 1 << IRQ_SLAVE. Other than that, it looks good to
    me. I'm not sure of a better place to do this, as it doesn't looke
    like a good idea to do the translation in pnp.c.

    Warner

    : Index: isa/pnpparse.c
    : ===================================================================
    : RCS file: /home/ncvs/src/sys/isa/pnpparse.c,v
    : retrieving revision 1.13
    : diff -u -r1.13 pnpparse.c
    : --- isa/pnpparse.c 16 Oct 2002 09:07:30 -0000 1.13
    : +++ isa/pnpparse.c 19 Jun 2003 06:00:02 -0000
    : @@ -110,7 +110,8 @@
    : if (bootverbose)
    : pnp_printf(id, "adding irq mask %#02x\n",
    : I16(res));
    : - config->ic_irqmask[config->ic_nirq] = I16(res);
    : + config->ic_irqmask[config->ic_nirq] = I16(res) &
    : + ~0x04;
    : config->ic_nirq++;
    : break;
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"


  • Next message: John Hay: "Re: pnp code and irq 2 broken"

    Relevant Pages

    • [Fwd: RFC.. defining __rangeof() in cdefs.h]
      ... retrieving revision 1.83 ... diff -u -r1.83 cdefs.h ... * Compiler-dependent macros to declare that functions take printf-like ... To unsubscribe, ...
      (freebsd-current)
    • Re: buildworld error (CVS july 4)
      ... retrieving revision 1.23.2.7 ... * compact the IP header into a structure which contains just the info. ... diff -u -r1.25.2.7 ip_fil.c ... I do not "unsubscribe" from email "services" to which I have not explicitly ...
      (freebsd-stable)
    • [PATCH 2/9] convert crypto to virt_to_pageoff()
      ... convert cryptoapi to virt_to_pageoff. ... retrieving revision 1.3 ... diff -u -r1.13 tcrypt.c ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH 8/9] convert drivers/usb to virt_to_pageoff()
      ... retrieving revision 1.19 ... diff -u -r1.19 usbtest.c ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH 3/9] convert net to virt_to_pageoff()
      ... retrieving revision 1.3 ... diff -u -r1.3 gss_krb5_crypto.c ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)