FreeBSD Bugzilla – Attachment 149349 Details for
Bug 194979
uart_intr leads to "bad stray interrupt" under pressure
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Setup uart_intr() as both filter and hander
bug137228.diff (text/plain), 1.03 KB, created by
Max Laier
on 2014-11-13 02:30:20 UTC
(
hide
)
Description:
Setup uart_intr() as both filter and hander
Filename:
MIME Type:
Creator:
Max Laier
Created:
2014-11-13 02:30:20 UTC
Size:
1.03 KB
patch
obsolete
>Index: dev/uart/uart_core.c >=================================================================== >--- dev/uart/uart_core.c (revision 447732) >+++ dev/uart/uart_core.c (working copy) >@@ -501,21 +501,22 @@ uart_bus_attach(device_t dev) > * conditions. We may have broken H/W and polling is probably the > * safest thing to do. > */ > if (filt != FILTER_SCHEDULE_THREAD) { > sc->sc_irid = 0; > sc->sc_ires = bus_alloc_resource_any(dev, SYS_RES_IRQ, > &sc->sc_irid, RF_ACTIVE | RF_SHAREABLE); > } > if (sc->sc_ires != NULL) { > error = bus_setup_intr(dev, sc->sc_ires, INTR_TYPE_TTY, >- uart_intr, NULL, sc, &sc->sc_icookie); >+ uart_intr, (driver_intr_t *)uart_intr, sc, >+ &sc->sc_icookie); > sc->sc_fastintr = (error == 0) ? 1 : 0; > > if (!sc->sc_fastintr) > error = bus_setup_intr(dev, sc->sc_ires, > INTR_TYPE_TTY | INTR_MPSAFE, NULL, > (driver_intr_t *)uart_intr, sc, &sc->sc_icookie); > > if (error) { > device_printf(dev, "could not activate interrupt\n"); > bus_release_resource(dev, SYS_RES_IRQ, sc->sc_irid,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 194979
: 149349