Skip to content

Commit

Permalink
Merge branch 'main' into rename-ca53-to-aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
Skptak authored Oct 20, 2023
2 parents da7b135 + 7562ebc commit c8be7db
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions portable/Common/mpu_wrappers_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,16 @@
static OpaqueObjectHandle_t MPU_GetHandleAtIndex( int32_t lIndex,
uint32_t ulKernelObjectType ) /* PRIVILEGED_FUNCTION */
{
OpaqueObjectHandle_t xObjectHandle = NULL;

configASSERT( IS_INTERNAL_INDEX_VALID( lIndex ) != pdFALSE );
configASSERT( xKernelObjectPool[ lIndex ].ulKernelObjectType == ulKernelObjectType );
return xKernelObjectPool[ lIndex ].xInternalObjectHandle;

if( xKernelObjectPool[ lIndex ].ulKernelObjectType == ulKernelObjectType )
{
xObjectHandle = xKernelObjectPool[ lIndex ].xInternalObjectHandle;
}

return xObjectHandle;
}
/*-----------------------------------------------------------*/

Expand Down

0 comments on commit c8be7db

Please sign in to comment.