mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:43:28 +08:00
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:
committed by
Alan Carvalho de Assis
parent
93beeeeab0
commit
3844efb5b8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user