Update port.c

This commit is contained in:
Carl Lundin 2020-10-26 09:17:15 -07:00 committed by GitHub
parent 55aae6193d
commit 01425985c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -207,11 +207,11 @@ BaseType_t xPortSysTickHandler( void )
* Used to set coprocessor area in stack. Current hack is to reuse MPU pointer for coprocessor area.
*/
#if portUSING_MPU_WRAPPERS
void vPortStoreTaskMPUSettings( xMPU_SETTINGS * xMPUSettings,
void vPortStoreTaskMPUSettings( xMPU_SETTINGS * xMPUSettings,
const struct xMEMORY_REGION * const xRegions,
StackType_t * pxBottomOfStack,
uint32_t ulStackDepth )
{
{
#if XCHAL_CP_NUM > 0
xMPUSettings->coproc_area = ( StackType_t * ) ( ( uint32_t ) ( pxBottomOfStack + ulStackDepth - 1 ));
xMPUSettings->coproc_area = ( StackType_t * ) ( ( ( portPOINTER_SIZE_TYPE ) xMPUSettings->coproc_area ) & ( ~( ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) ) );
@ -221,5 +221,5 @@ BaseType_t xPortSysTickHandler( void )
* clear the stack area after we return. This is done in pxPortInitialiseStack().
*/
#endif
}
}
#endif /* if portUSING_MPU_WRAPPERS */