summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/kern/init_main.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-09-25 09:27:50 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-09-25 10:01:15 +0200
commitb42dea9e51579ee27f1e063e75b936fec6c55141 (patch)
tree77a2a3e10305dde7e8679215f4ebd2d221e1b49a /freebsd/sys/kern/init_main.c
parentmedia01: Improve output messages (diff)
downloadrtems-libbsd-b42dea9e51579ee27f1e063e75b936fec6c55141.tar.bz2
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.
Diffstat (limited to 'freebsd/sys/kern/init_main.c')
-rw-r--r--freebsd/sys/kern/init_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/freebsd/sys/kern/init_main.c b/freebsd/sys/kern/init_main.c
index fa4951d8..43eaea5c 100644
--- a/freebsd/sys/kern/init_main.c
+++ b/freebsd/sys/kern/init_main.c
@@ -350,8 +350,12 @@ restart:
TSEXIT(); /* Here so we don't overlap with start_init. */
+#ifndef __rtems__
mtx_assert(&Giant, MA_OWNED | MA_NOTRECURSED);
mtx_unlock(&Giant);
+#else /* __rtems__ */
+ /* Giant is unlocked in rtems_bsd_timeout_init_late() */
+#endif /* __rtems__ */
#ifndef __rtems__
/*