mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-01 20:03:50 -04:00
Fix the context array size for MPU ports (#1230)
Fix the context array size for MPU ports Ensure the saved context location falls within the reserved context area rather than overlapping with the next MPU_SETTINGS structure member. This never caused a problem because actual read/write operations start from one word before the saved context location. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
parent
2b35979a1a
commit
11d0caa614
26 changed files with 208 additions and 173 deletions
|
@ -125,6 +125,14 @@ typedef struct MPU_REGION_SETTINGS
|
|||
|
||||
#endif /* #if ( configUSE_MPU_WRAPPERS_V1 == 0 ) */
|
||||
|
||||
/*
|
||||
* +------------------------------+-------------------------------+-----+
|
||||
* | CONTROL, r4-r11, EXC_RETURN | PSP, r0-r3, r12, LR, PC, xPSR | |
|
||||
* +------------------------------+-------------------------------+-----+
|
||||
*
|
||||
* <-----------------------------><-------------------------------><---->
|
||||
* 10 9 1
|
||||
*/
|
||||
#define MAX_CONTEXT_SIZE ( 20 )
|
||||
|
||||
/* Size of an Access Control List (ACL) entry in bits. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue