stack: update up_get_intstackbase API to support cpu id

For crash dump all the CPU intstack

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd
2024-03-28 17:57:03 +08:00
committed by Alan Carvalho de Assis
parent 93beeeeab0
commit 3844efb5b8
50 changed files with 137 additions and 125 deletions
+4 -4
View File
@@ -136,9 +136,9 @@ void up_irqinitialize(void)
****************************************************************************/
#if defined(CONFIG_SMP) && CONFIG_ARCH_INTERRUPTSTACK > 7
uintptr_t arm_intstack_top(void)
uintptr_t arm_intstack_top(int cpu)
{
return g_irqstack_top[up_cpu_index()];
return g_irqstack_top[cpu];
}
#endif
@@ -152,8 +152,8 @@ uintptr_t arm_intstack_top(void)
****************************************************************************/
#if defined(CONFIG_SMP) && CONFIG_ARCH_INTERRUPTSTACK > 7
uintptr_t arm_intstack_alloc(void)
uintptr_t arm_intstack_alloc(int cpu)
{
return g_irqstack_top[up_cpu_index()] - INTSTACK_SIZE;
return g_irqstack_top[cpu] - INTSTACK_SIZE;
}
#endif