armv7-a/r: use _ebss as idle stack both in SMP mode or not

It is better take the _ebss as IDLE_STACK_BASE like armv8-m

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd 2024-01-05 21:26:08 +08:00 committed by Xiang Xiao
parent d4b17f963d
commit 7d45afe871
2 changed files with 1 additions and 7 deletions

View File

@ -34,8 +34,6 @@
#ifndef IDLE_STACK_BASE
#ifdef CONFIG_BOOT_SDRAM_DATA
#define IDLE_STACK_BASE IDLE_STACK_VBASE
#elif defined(CONFIG_SMP)
#define IDLE_STACK_BASE _enoinit
#else
#define IDLE_STACK_BASE _ebss
#endif

View File

@ -76,11 +76,7 @@
*/
#ifndef IDLE_STACK_BASE
# ifdef CONFIG_SMP
# define IDLE_STACK_BASE _enoinit
# else
# define IDLE_STACK_BASE _ebss
# endif
# define IDLE_STACK_BASE _ebss
#endif
#define IDLE_STACK_TOP IDLE_STACK_BASE+CONFIG_IDLETHREAD_STACKSIZE