mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-07 13:45:00 -05:00
Add check for read/write access when attempting to read a variable.
This commit is contained in:
parent
23363bcaf6
commit
10bac00a98
1 changed files with 2 additions and 1 deletions
|
|
@ -1514,7 +1514,8 @@ void vPortEndScheduler( void ) /* PRIVILEGED_FUNCTION */
|
||||||
if( ulAccessRequested == tskMPU_READ_PERMISSION ) /* RO. */
|
if( ulAccessRequested == tskMPU_READ_PERMISSION ) /* RO. */
|
||||||
{
|
{
|
||||||
if( ( ulMPURegionAccessPermissions == portMPU_REGION_PRIV_RW_UNPRIV_RO ) ||
|
if( ( ulMPURegionAccessPermissions == portMPU_REGION_PRIV_RW_UNPRIV_RO ) ||
|
||||||
( ulMPURegionAccessPermissions == portMPU_REGION_PRIV_RO_UNPRIV_RO ) )
|
( ulMPURegionAccessPermissions == portMPU_REGION_PRIV_RO_UNPRIV_RO ) ||
|
||||||
|
( ulMPURegionAccessPermissions == portMPU_REGION_PRIV_RW_UNPRIV_RW ) )
|
||||||
{
|
{
|
||||||
xAccessGranted = pdTRUE;
|
xAccessGranted = pdTRUE;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue