diff options
| author | shaojinchun <[email protected]> | 2019-05-29 08:26:08 +0800 |
|---|---|---|
| committer | shaojinchun <[email protected]> | 2019-05-29 08:40:41 +0800 |
| commit | 043611b98aca955e9cb511c51baf7240389fba75 (patch) | |
| tree | 5efd1ea6b7de106e2e9f61375d65c41231badbc2 /libcpu/arm/cortex-a/stack.c | |
| parent | 91f6abb7652e5e3e0fb715855e9314723c2e1e75 (diff) | |
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; |
