diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-11-05 11:46:18 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-11-05 11:46:18 +0000 |
commit | 8359e7be774c7286686042f0a5e86e862bfeef68 (patch) | |
tree | 3b2b4b38bee61eb1df1e79d9dbd53db2dae72ea7 /os/nil | |
parent | bfabd1d961566afd49d3af5d1b0e6ee4e53cb46a (diff) | |
download | ChibiOS-8359e7be774c7286686042f0a5e86e862bfeef68.tar.gz ChibiOS-8359e7be774c7286686042f0a5e86e862bfeef68.tar.bz2 ChibiOS-8359e7be774c7286686042f0a5e86e862bfeef68.zip |
Fixed bug #902.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10960 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/nil')
-rw-r--r-- | os/nil/src/ch.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/os/nil/src/ch.c b/os/nil/src/ch.c index 2c9a61279..cbae55c46 100644 --- a/os/nil/src/ch.c +++ b/os/nil/src/ch.c @@ -260,11 +260,21 @@ void chSysInit(void) { nil.lock_cnt = (cnt_t)1;
#endif
+ /* Memory core initialization, if enabled.*/
+#if CH_CFG_USE_MEMCORE == TRUE
+ _core_init();
+#endif
+
/* Heap initialization, if enabled.*/
#if CH_CFG_USE_HEAP == TRUE
_heap_init();
#endif
+ /* Factory initialization, if enabled.*/
+#if CH_CFG_USE_FACTORY == TRUE
+ _factory_init();
+#endif
+
/* Port layer initialization last because it depend on some of the
initializations performed before.*/
port_init();
|