From c91a7f46f576ea89271a29365b36fd3fd0265a01 Mon Sep 17 00:00:00 2001 From: Yucai Liu Date: Sat, 1 Nov 2025 15:21:09 +0800 Subject: [PATCH] [libcpu/arm/cortex-m33]: Fix incorrect CPU architecture in GCC context switch The context_gcc.S file was incorrectly marked as cortex-m4 in both the doxygen comment and .cpu directive, while the IAR and KEIL versions correctly specify cortex-m33. This file uses ARMv8-M specific features (PSPLIM register, TrustZone support) that are not available in Cortex-M4. Changes: - Update doxygen group from cortex-m4 to cortex-m33 - Change .cpu directive from cortex-m4 to cortex-m33 --- libcpu/arm/cortex-m33/context_gcc.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcpu/arm/cortex-m33/context_gcc.S b/libcpu/arm/cortex-m33/context_gcc.S index 8b850cd1c0..9a83967f4e 100644 --- a/libcpu/arm/cortex-m33/context_gcc.S +++ b/libcpu/arm/cortex-m33/context_gcc.S @@ -13,13 +13,13 @@ */ /** - * @addtogroup cortex-m4 + * @addtogroup cortex-m33 */ /*@{*/ #include -.cpu cortex-m4 +.cpu cortex-m33 .syntax unified .thumb .text