aboutsummaryrefslogtreecommitdiffstats
path: root/os/common/ports/ARMCMx/compilers/GCC/crt0.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/common/ports/ARMCMx/compilers/GCC/crt0.c')
-rw-r--r--os/common/ports/ARMCMx/compilers/GCC/crt0.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/os/common/ports/ARMCMx/compilers/GCC/crt0.c b/os/common/ports/ARMCMx/compilers/GCC/crt0.c
index a9b58820e..06c41a2d0 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.
*/
-#define fill32(start, end, filler) { \
- uint32_t *p1 = start; \
- uint32_t *p2 = end; \
- while (p1 < p2) \
- *p1++ = filler; \
+static void fill32(void *start, void *end, uint32_t filler) {
+ uint32_t *p1 = start;
+ uint32_t *p2 = end;
+ while (p1 < p2)
+ *p1++ = filler;
}
/*===========================================================================*/