From ceb066d138d87900e72eb802927885cf6d0180a8 Mon Sep 17 00:00:00 2001 From: Gaurav Aggarwal Date: Fri, 8 Aug 2025 06:43:08 +0000 Subject: [PATCH] Fix the context array size Ensure the saved context location falls within the reserved context area rather than overlapping with the next MPU_SETTINGS structure member. This was applied to the upstream port in the following PR: https://github.com/FreeRTOS/FreeRTOS-Kernel/pull/1230. Signed-off-by: Gaurav Aggarwal --- GCC/RP2350_ARM_NTZ/non_secure/portmacrocommon.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GCC/RP2350_ARM_NTZ/non_secure/portmacrocommon.h b/GCC/RP2350_ARM_NTZ/non_secure/portmacrocommon.h index 6fd0c18..66b8371 100644 --- a/GCC/RP2350_ARM_NTZ/non_secure/portmacrocommon.h +++ b/GCC/RP2350_ARM_NTZ/non_secure/portmacrocommon.h @@ -232,9 +232,9 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P * +-----------+---------------+----------+-----------------+------------------------------+-----+ * * <-----------><--------------><---------><----------------><-----------------------------><----> - * 16 16 8 8 5 1 + * 16 17 8 8 5 1 */ - #define MAX_CONTEXT_SIZE 54 + #define MAX_CONTEXT_SIZE 55 #else /* #if( configENABLE_TRUSTZONE == 1 ) */ @@ -245,9 +245,9 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P * +-----------+---------------+----------+-----------------+----------------------+-----+ * * <-----------><--------------><---------><----------------><---------------------><----> - * 16 16 8 8 4 1 + * 16 17 8 8 4 1 */ - #define MAX_CONTEXT_SIZE 53 + #define MAX_CONTEXT_SIZE 54 #endif /* #if( configENABLE_TRUSTZONE == 1 ) */