boards: cxd56xx: Fix crashdump compile error in SMP
In CONFIG_SMP=y, use arm_intstack_top() instead of g_intstacktop to get the base address of interrupt stack.
This commit is contained in:
parent
f75437d3f3
commit
751f7973e9
@ -189,7 +189,11 @@ void board_crashdump(uintptr_t currentsp, FAR void *tcb,
|
|||||||
#if CONFIG_ARCH_INTERRUPTSTACK > 3
|
#if CONFIG_ARCH_INTERRUPTSTACK > 3
|
||||||
/* Get the limits on the interrupt stack memory */
|
/* Get the limits on the interrupt stack memory */
|
||||||
|
|
||||||
|
#ifdef CONFIG_SMP
|
||||||
|
pdump->info.stacks.interrupt.top = (uint32_t)arm_intstack_top();
|
||||||
|
#else
|
||||||
pdump->info.stacks.interrupt.top = (uint32_t)&g_intstacktop;
|
pdump->info.stacks.interrupt.top = (uint32_t)&g_intstacktop;
|
||||||
|
#endif
|
||||||
pdump->info.stacks.interrupt.size = (CONFIG_ARCH_INTERRUPTSTACK & ~3);
|
pdump->info.stacks.interrupt.size = (CONFIG_ARCH_INTERRUPTSTACK & ~3);
|
||||||
|
|
||||||
/* If In interrupt Context save the interrupt stack data centered
|
/* If In interrupt Context save the interrupt stack data centered
|
||||||
|
Loading…
Reference in New Issue
Block a user