ostest: smp_call only valid in FLAT BUILD

Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
hujun5 2024-09-04 20:30:37 +08:00 committed by Xiang Xiao
parent 4ebd68f7d8
commit 0b26b04081
2 changed files with 3 additions and 1 deletions

View File

@ -596,7 +596,7 @@ static int user_main(int argc, char *argv[])
vfork_test(); vfork_test();
#endif #endif
#ifdef CONFIG_SMP_CALL #if defined(CONFIG_SMP_CALL) && defined(CONFIG_BUILD_FLAT)
printf("\nuser_main: smp call test\n"); printf("\nuser_main: smp call test\n");
smp_call_test(); smp_call_test();
#endif #endif

View File

@ -29,6 +29,7 @@
#include <nuttx/sched.h> #include <nuttx/sched.h>
#if defined(CONFIG_SMP_CALL) && defined(CONFIG_BUILD_FLAT)
/**************************************************************************** /****************************************************************************
* Private Functions * Private Functions
****************************************************************************/ ****************************************************************************/
@ -116,3 +117,4 @@ void smp_call_test(void)
printf("smp_call_test: Test success\n"); printf("smp_call_test: Test success\n");
} }
#endif