mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-28 01:53:51 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue