diff options
author | Keith Packard <keithp@keithp.com> | 2018-09-11 18:46:52 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2018-10-13 08:23:25 -0700 |
commit | 23075d174d2bff8ff3f3deef3c3d90b83da6bd2e (patch) | |
tree | 327dc05580ff64592f915966062b7c0983d6f315 /src/kernel | |
parent | 71248c899676e0c2f3a478c63dec0d005b2458e6 (diff) |
altos/stm32f4: Align stack to 8 bytes
This makes sure that doubles are aligned properly when passed on the stack.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/ao_task.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/kernel/ao_task.h b/src/kernel/ao_task.h index f3789fa2..709e10c6 100644 --- a/src/kernel/ao_task.h +++ b/src/kernel/ao_task.h @@ -27,14 +27,12 @@ #endif /* arm stacks must be 32-bit aligned */ +#ifndef AO_STACK_ALIGNMENT #ifdef __arm__ #define AO_STACK_ALIGNMENT __attribute__ ((aligned(4))) -#endif -#ifdef SDCC +#else #define AO_STACK_ALIGNMENT #endif -#ifdef __AVR__ -#define AO_STACK_ALIGNMENT #endif /* An AltOS task */ |