From ab2e45a86ce3f6585cf40c920b4515b6b0df3625 Mon Sep 17 00:00:00 2001 From: Yanfeng Liu Date: Sat, 3 Aug 2024 10:37:48 +0800 Subject: [PATCH] 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 --- testing/ostest/ostest_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/ostest/ostest_main.c b/testing/ostest/ostest_main.c index af063fc08..27d860cef 100644 --- a/testing/ostest/ostest_main.c +++ b/testing/ostest/ostest_main.c @@ -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");