Skip to content

Commit b3691d1

Browse files
authored
Fix the context array size (#23)
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 <[email protected]>
1 parent 59a6ca7 commit b3691d1

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)