From 35e5612bce602448be9cd69d5d342344266f95f0 Mon Sep 17 00:00:00 2001 From: Yanfeng Liu Date: Thu, 6 Feb 2025 20:53:53 +0800 Subject: [PATCH] arch/armv7-r: select ARM_THUMB This selects ARM_THUMB for ARMV7R per ARM document: https://developer.arm.com/documentation/dui0471 Thanks to hujun260 for spotting this, now ostest works. Why it helps is still to be clarified, the `arm_signal_handler.S` might require this THUMB option. To keep ARM_THUMB as option, this only selects it for PROTECTED as per anchao's suggestion. Signed-off-by: Yanfeng Liu --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 3cb35a1d58..04c0c3af7b 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -982,6 +982,7 @@ config ARCH_ARMV7R default n select ARCH_HAVE_CPUINFO select ARCH_HAVE_PERF_EVENTS + select ARM_THUMB if BUILD_PROTECTED config ARCH_CORTEXR4 bool