Slight format change

This commit is contained in:
Soren Ptak 2024-01-02 13:06:59 -05:00
parent b2c406c3a3
commit be4dc05b78

View file

@ -222,26 +222,21 @@ PRIVILEGED_DATA volatile uint32_t ulICCEOIR = configEOI_ADDRESS;
xMPUSettings->ulContext[ ulContextIndex ] = portNO_CRITICAL_NESTING; xMPUSettings->ulContext[ ulContextIndex ] = portNO_CRITICAL_NESTING;
/* Ensure that the system call stack is double word aligned. */ /* Ensure that the system call stack is double word aligned. */
xMPUSettings->xSystemCallStackInfo.pulSystemCallStackPointer = &( xSYSTEM_CALL_STACK_INFO * xSysCallInfo = &( xMPUSettings->xSystemCallStackInfo );
xMPUSettings->xSystemCallStackInfo xSysCallInfo->pulSystemCallStackPointer = &(
.ulSystemCallStackBuffer[ configSYSTEM_CALL_STACK_SIZE - 1 ] xSysCallInfo->ulSystemCallStackBuffer[ configSYSTEM_CALL_STACK_SIZE - 1U ]
); );
xMPUSettings->xSystemCallStackInfo.pulSystemCallStackPointer =
( uint32_t * ) ( ( uint32_t ) ( xMPUSettings->xSystemCallStackInfo xSysCallInfo->pulSystemCallStackPointer =
.pulSystemCallStackPointer ) & ( uint32_t * ) ( ( uint32_t ) ( xSysCallInfo->pulSystemCallStackPointer ) &
( uint32_t ) ( ~( portBYTE_ALIGNMENT_MASK ) ) ); ( uint32_t ) ( ~( portBYTE_ALIGNMENT_MASK ) ) );
/* This is not NULL only for the duration of a system call. */ /* This is not NULL only for the duration of a system call. */
xMPUSettings->xSystemCallStackInfo.pulTaskStackPointer = NULL; xSysCallInfo->pulTaskStackPointer = NULL;
/* Set the System Call LR to go directly to vPortSystemCallExit */ /* Set the System Call LR to go directly to vPortSystemCallExit */
xMPUSettings->xSystemCallStackInfo.pulSystemCallLinkRegister = &vPortSystemCallExit; xSysCallInfo->pulSystemCallLinkRegister = &vPortSystemCallExit;
UBaseType_t ulStackIndex; UBaseType_t ulStackIndex;
/* Fill the System Call Stack with known values for debugging. */
for( ulStackIndex = 0x0; ulStackIndex < configSYSTEM_CALL_STACK_SIZE; ulStackIndex++ )
{
xMPUSettings->xSystemCallStackInfo
.ulSystemCallStackBuffer[ ulStackIndex ] = 0x575B | ulStackIndex;
}
/* Return the address where the context of this task should be restored from*/ /* Return the address where the context of this task should be restored from*/
return ( &xMPUSettings->ulContext[ ulContextIndex ] ); return ( &xMPUSettings->ulContext[ ulContextIndex ] );