Skip to content

Commit d074a7e

Browse files
committed
[libcpu][arm] fix: correct FPU stack initialization sequence and alignment for Cortex-A
1 parent aecd471 commit d074a7e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

libcpu/arm/cortex-a/stack.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ rt_uint8_t *rt_hw_stack_init(void *tentry, void *parameter,
3131
rt_uint8_t *stack_addr, void *texit)
3232
{
3333
rt_uint32_t *stk;
34+
#ifdef RT_USING_FPU
3435
rt_uint32_t i;
36+
#endif
3537

3638
stack_addr += sizeof(rt_uint32_t);
3739
stack_addr = (rt_uint8_t *)RT_ALIGN_DOWN((rt_uint32_t)stack_addr, 8);

0 commit comments

Comments
 (0)