Date: Mon, 10 Feb 2003 21:50:42 -0800 (PST) From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 24966 for review Message-ID: <200302110550.h1B5ogkj016362@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=24966 Change 24966 by sam@sam_ebb on 2003/02/10 21:50:06 mark interrupt handlers MPSAFE; they have been since the start Affected files ... .. //depot/projects/crypto/dev/hifn/hifn7751.c#3 edit .. //depot/projects/crypto/dev/ubsec/ubsec.c#3 edit Differences ... ==== //depot/projects/crypto/dev/hifn/hifn7751.c#3 (text+ko) ==== @@ -425,7 +425,7 @@ * NB: Network code assumes we are blocked with splimp() * so make sure the IRQ is marked appropriately. */ - if (bus_setup_intr(dev, sc->sc_irq, INTR_TYPE_NET, + if (bus_setup_intr(dev, sc->sc_irq, INTR_TYPE_NET | INTR_MPSAFE, hifn_intr, sc, &sc->sc_intrhand)) { device_printf(dev, "could not setup interrupt\n"); goto fail_intr2; @@ -1388,7 +1388,6 @@ static u_int hifn_write_command(struct hifn_command *cmd, u_int8_t *buf) { -#define MIN(a,b) ((a)<(b)?(a):(b)) u_int8_t *buf_pos; hifn_base_command_t *base_cmd; hifn_mac_command_t *mac_cmd; @@ -1482,7 +1481,6 @@ } return (buf_pos - buf); -#undef MIN } static int ==== //depot/projects/crypto/dev/ubsec/ubsec.c#3 (text+ko) ==== @@ -349,7 +349,7 @@ * NB: Network code assumes we are blocked with splimp() * so make sure the IRQ is mapped appropriately. */ - if (bus_setup_intr(dev, sc->sc_irq, INTR_TYPE_NET, + if (bus_setup_intr(dev, sc->sc_irq, INTR_TYPE_NET | INTR_MPSAFE, ubsec_intr, sc, &sc->sc_ih)) { device_printf(dev, "could not establish interrupt\n"); goto bad2; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302110550.h1B5ogkj016362>