mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 13:15:21 +08:00
CONFIG_INTRHOOK(9): Port to RTEMS
Some device drivers (e.g. MMC) need a complex intialization with working callouts. Remove the dummy CONFIG_INTRHOOK() implementation and replace it with the real one from FreeBSD. Make sure TIMEOUT(9) services work at this point. Update #3525.
This commit is contained in:
@@ -326,7 +326,15 @@ rtems_bsd_timeout_init_late(void *unused)
|
||||
rtems_status_code sc;
|
||||
rtems_id id;
|
||||
|
||||
(void) unused;
|
||||
(void)unused;
|
||||
|
||||
/*
|
||||
* Giant unlock moved from mi_startup() to here. We have to unlock the
|
||||
* Giant lock earlier, since otherwise deadlocks with non-mpsafe
|
||||
* callouts may occur.
|
||||
*/
|
||||
mtx_assert(&Giant, MA_OWNED | MA_NOTRECURSED);
|
||||
mtx_unlock(&Giant);
|
||||
|
||||
sc = rtems_timer_create(rtems_build_name('_', 'C', 'L', 'O'), &id);
|
||||
BSD_ASSERT(sc == RTEMS_SUCCESSFUL);
|
||||
@@ -338,7 +346,7 @@ rtems_bsd_timeout_init_late(void *unused)
|
||||
SYSINIT(rtems_bsd_timeout_early, SI_SUB_VM, SI_ORDER_FIRST,
|
||||
rtems_bsd_timeout_init_early, NULL);
|
||||
|
||||
SYSINIT(rtems_bsd_timeout_late, SI_SUB_LAST, SI_ORDER_FIRST,
|
||||
SYSINIT(rtems_bsd_timeout_late, SI_SUB_KICK_SCHEDULER, SI_ORDER_FIRST,
|
||||
rtems_bsd_timeout_init_late, NULL);
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user