diff options
| author | Bernard Xiong <[email protected]> | 2019-05-29 18:30:44 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-05-29 18:30:44 +0800 |
| commit | 0b4e2a984e0569036f12b8afe542831b14096a34 (patch) | |
| tree | 1733b4f3abc3329ca4e52905528202af5d23096d /libcpu/arm/cortex-a/stack.c | |
| parent | ebe6c55c75ae6da88c42d29098554980a8b4df0c (diff) | |
| parent | 043611b98aca955e9cb511c51baf7240389fba75 (diff) | |
Merge pull request #2731 from jesven/a9-fpu
add cortex-a fpu support
Diffstat (limited to 'libcpu/arm/cortex-a/stack.c')
| -rw-r--r-- | libcpu/arm/cortex-a/stack.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcpu/arm/cortex-a/stack.c b/libcpu/arm/cortex-a/stack.c index d76b8a428a..07d795ab5b 100644 --- a/libcpu/arm/cortex-a/stack.c +++ b/libcpu/arm/cortex-a/stack.c @@ -60,6 +60,9 @@ rt_uint8_t *rt_hw_stack_init(void *tentry, void *parameter, *(--stk) = 0; /* user lr */ *(--stk) = 0; /* user sp*/ #endif +#ifdef RT_USING_FPU + *(--stk) = 0; /* not use fpu*/ +#endif /* return task's current stack address */ return (rt_uint8_t *)stk; |
