mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 11:59:33 +08:00
Change LibBSD to use shared interrupts.
This commit is contained in:
parent
130fa3534f
commit
b23da3150b
@ -280,7 +280,7 @@ nexus_setup_intr(device_t dev, device_t child, struct resource *res, int flags,
|
||||
|
||||
sc = rtems_interrupt_server_handler_install(RTEMS_ID_NONE,
|
||||
rman_get_start(res), device_get_nameunit(child),
|
||||
RTEMS_INTERRUPT_UNIQUE, rh, ra);
|
||||
RTEMS_INTERRUPT_SHARED, rh, ra);
|
||||
if (sc == RTEMS_SUCCESSFUL) {
|
||||
err = 0;
|
||||
} else {
|
||||
@ -321,7 +321,7 @@ nexus_teardown_intr(device_t dev, device_t child, struct resource *res,
|
||||
|
||||
sc = rtems_interrupt_server_handler_install(RTEMS_ID_NONE,
|
||||
rman_get_start(res), device_get_nameunit(child),
|
||||
RTEMS_INTERRUPT_UNIQUE, rh, ra);
|
||||
RTEMS_INTERRUPT_SHARED, rh, ra);
|
||||
err = sc == RTEMS_SUCCESSFUL ? 0 : EINVAL;
|
||||
#else
|
||||
err = EINVAL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user