diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-09-09 19:25:22 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-09-09 19:25:22 +0000 |
commit | 2b3150149fbe38632ed7d8e8c2606eee18aea421 (patch) | |
tree | 646f7000e7793ebd9d0f8d35359485552bd16db0 | |
parent | e81e3b3b1b43c7c6058290d73810dd63d7c22b97 (diff) | |
download | ChibiOS-2b3150149fbe38632ed7d8e8c2606eee18aea421.tar.gz ChibiOS-2b3150149fbe38632ed7d8e8c2606eee18aea421.tar.bz2 ChibiOS-2b3150149fbe38632ed7d8e8c2606eee18aea421.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6288 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/common/ports/ARMCMx/compilers/GCC/crt0.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/os/common/ports/ARMCMx/compilers/GCC/crt0.c b/os/common/ports/ARMCMx/compilers/GCC/crt0.c index 06c41a2d0..f115a0179 100644 --- a/os/common/ports/ARMCMx/compilers/GCC/crt0.c +++ b/os/common/ports/ARMCMx/compilers/GCC/crt0.c @@ -51,11 +51,11 @@ typedef funcp_t * funcpp_t; * Area fill code, it is a macro because here functions cannot be called
* until stacks are initialized.
*/
-static void fill32(void *start, void *end, uint32_t filler) {
- uint32_t *p1 = start;
- uint32_t *p2 = end;
- while (p1 < p2)
- *p1++ = filler;
+#define fill32(start, end, filler) { \
+ uint32_t *p1 = (start); \
+ uint32_t *p2 = (end); \
+ while (p1 < p2) \
+ *p1++ = (filler); \
}
/*===========================================================================*/
@@ -245,7 +245,7 @@ void __late_init(void) {} * @note This function is a weak symbol.
*/
#if !defined(__DOXYGEN__)
-__attribute__((weak, naked))
+__attribute__((noreturn, weak))
#endif
void _default_exit(void) {
while (1)
|