summaryrefslogtreecommitdiff
path: root/libcpu/arm/cortex-a/stack.c
diff options
context:
space:
mode:
authorHubretXie <[email protected]>2019-06-09 13:55:19 +0800
committerGitHub <[email protected]>2019-06-09 13:55:19 +0800
commit5a5ea94928061548e5c59dd6cd070eaaeb347213 (patch)
tree4d88994e08184bc0aa297dfc20c70ca3906d36b1 /libcpu/arm/cortex-a/stack.c
parent36ffdc058b3aeb447d74dd916c26e1dd80b80def (diff)
parentcf7052f6b7502c20f28eae5b9c096978c7f3a98f (diff)
Merge pull request #6 from RT-Thread/master
sync
Diffstat (limited to 'libcpu/arm/cortex-a/stack.c')
-rw-r--r--libcpu/arm/cortex-a/stack.c3
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;