diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-08-16 08:33:01 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-08-16 08:33:01 +0000 |
commit | 407e5714792cf9280eeea1a60e66db69924f114c (patch) | |
tree | 842dc4fb0fa5f71f046fdb82ebcf624a0bac0f9d /os/common/ports/ARMCMx/compilers/GCC/crt0_v6m.s | |
parent | 83b26b4f441d78fc13737d33f1535bacb8219af5 (diff) | |
download | ChibiOS-407e5714792cf9280eeea1a60e66db69924f114c.tar.gz ChibiOS-407e5714792cf9280eeea1a60e66db69924f114c.tar.bz2 ChibiOS-407e5714792cf9280eeea1a60e66db69924f114c.zip |
Moved cache initialization into startup files.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8220 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/common/ports/ARMCMx/compilers/GCC/crt0_v6m.s')
-rw-r--r-- | os/common/ports/ARMCMx/compilers/GCC/crt0_v6m.s | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/os/common/ports/ARMCMx/compilers/GCC/crt0_v6m.s b/os/common/ports/ARMCMx/compilers/GCC/crt0_v6m.s index 38b4513b7..824538215 100644 --- a/os/common/ports/ARMCMx/compilers/GCC/crt0_v6m.s +++ b/os/common/ports/ARMCMx/compilers/GCC/crt0_v6m.s @@ -57,6 +57,13 @@ #endif
/**
+ * @brief Core initialization switch.
+ */
+#if !defined(CRT0_INIT_CORE) || defined(__DOXYGEN__)
+#define CRT0_INIT_CORE TRUE
+#endif
+
+/**
* @brief Stack segments initialization switch.
*/
#if !defined(CRT0_STACKS_FILL_PATTERN) || defined(__DOXYGEN__)
@@ -129,6 +136,11 @@ Reset_Handler: msr CONTROL, r0
isb
+#if CRT0_INIT_CORE == TRUE
+ /* Core initialization.*/
+ bl __core_init
+#endif
+
/* Early initialization..*/
bl __early_init
|