ostest/fpu_test: enable for FLAT mode only
As per the `HAVE_FPU` in `fpu.c`, fpu_test is only available for FLAT build. So user_main should enable fpu_test for FLAT build also, otherwise ostest will fail for PROTECTED build. Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
This commit is contained in:
parent
38ae8e7827
commit
ab2e45a86c
@ -346,7 +346,7 @@ static int user_main(int argc, char *argv[])
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_ARCH_FPU) && !defined(CONFIG_TESTING_OSTEST_FPUTESTDISABLE) && \
|
||||
!defined(CONFIG_BUILD_KERNEL)
|
||||
defined(CONFIG_BUILD_FLAT)
|
||||
/* Check that the FPU is properly supported during context switching */
|
||||
|
||||
printf("\nuser_main: FPU test\n");
|
||||
|
Loading…
Reference in New Issue
Block a user