Skip to content

Commit ceb066d

Browse files
committed
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: FreeRTOS/FreeRTOS-Kernel#1230. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
1 parent 59a6ca7 commit ceb066d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

GCC/RP2350_ARM_NTZ/non_secure/portmacrocommon.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,9 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
232232
* +-----------+---------------+----------+-----------------+------------------------------+-----+
233233
*
234234
* <-----------><--------------><---------><----------------><-----------------------------><---->
235-
* 16 16 8 8 5 1
235+
* 16 17 8 8 5 1
236236
*/
237-
#define MAX_CONTEXT_SIZE 54
237+
#define MAX_CONTEXT_SIZE 55
238238

239239
#else /* #if( configENABLE_TRUSTZONE == 1 ) */
240240

@@ -245,9 +245,9 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
245245
* +-----------+---------------+----------+-----------------+----------------------+-----+
246246
*
247247
* <-----------><--------------><---------><----------------><---------------------><---->
248-
* 16 16 8 8 4 1
248+
* 16 17 8 8 4 1
249249
*/
250-
#define MAX_CONTEXT_SIZE 53
250+
#define MAX_CONTEXT_SIZE 54
251251

252252
#endif /* #if( configENABLE_TRUSTZONE == 1 ) */
253253

0 commit comments

Comments
 (0)