diff options
| author | Bernard Xiong <[email protected]> | 2019-12-21 06:40:47 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-12-21 06:40:47 +0800 |
| commit | 0c11cd86717295bc4c41d7421e4119a62bbbfa11 (patch) | |
| tree | 594994078d07de40ba37c47d5d5c536a51bfe0fc /libcpu/arm/cortex-a/stack.c | |
| parent | 3491b2f0f470d3834763b9d78071ce7804597c94 (diff) | |
| parent | a383385a3c0a676cee4471fd3cb4f372a36e1023 (diff) | |
Merge pull request #3274 from armink/lts-v3.1.x
Lts v3.1.x
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; |
