summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/arm/cortex-m4/cpuport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/arm/cortex-m4/cpuport.c b/libcpu/arm/cortex-m4/cpuport.c
index 63f10b4daa..a282a3be77 100644
--- a/libcpu/arm/cortex-m4/cpuport.c
+++ b/libcpu/arm/cortex-m4/cpuport.c
@@ -67,7 +67,7 @@ rt_uint8_t *rt_hw_stack_init(void *tentry, void *parameter,
unsigned long *stk;
struct stack_contex_fpu * stack_contex_fpu;
- stk = (unsigned long *)stack_addr;
+ stk = (unsigned long *)stack_addr + sizeof(rt_uint32_t);
stk -= sizeof(struct stack_contex_fpu);
stack_contex_fpu = (struct stack_contex_fpu *)stk;