mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Fix formatting error
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
parent
44fc137428
commit
6ac9aaec95
|
@ -168,40 +168,40 @@
|
||||||
|
|
||||||
#else /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE */
|
#else /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE */
|
||||||
|
|
||||||
/* Ensure API functions go in the privileged execution section. */
|
/* Ensure API functions go in the privileged execution section. */
|
||||||
#define PRIVILEGED_FUNCTION __attribute__( ( section( "privileged_functions" ) ) )
|
#define PRIVILEGED_FUNCTION __attribute__( ( section( "privileged_functions" ) ) )
|
||||||
#define PRIVILEGED_DATA __attribute__( ( section( "privileged_data" ) ) )
|
#define PRIVILEGED_DATA __attribute__( ( section( "privileged_data" ) ) )
|
||||||
#define FREERTOS_SYSTEM_CALL __attribute__( ( section( "freertos_system_calls" ) ) )
|
#define FREERTOS_SYSTEM_CALL __attribute__( ( section( "freertos_system_calls" ) ) )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Calls the port specific code to raise the privilege.
|
* @brief Calls the port specific code to raise the privilege.
|
||||||
*
|
*
|
||||||
* Sets xRunningPrivileged to pdFALSE if privilege was raised, else sets
|
* Sets xRunningPrivileged to pdFALSE if privilege was raised, else sets
|
||||||
* it to pdTRUE.
|
* it to pdTRUE.
|
||||||
*/
|
*/
|
||||||
#define xPortRaisePrivilege( xRunningPrivileged ) \
|
#define xPortRaisePrivilege( xRunningPrivileged ) \
|
||||||
{ \
|
{ \
|
||||||
/* Check whether the processor is already privileged. */ \
|
/* Check whether the processor is already privileged. */ \
|
||||||
xRunningPrivileged = portIS_PRIVILEGED(); \
|
xRunningPrivileged = portIS_PRIVILEGED(); \
|
||||||
\
|
\
|
||||||
/* If the processor is not already privileged, raise privilege. */ \
|
/* If the processor is not already privileged, raise privilege. */ \
|
||||||
if( xRunningPrivileged == pdFALSE ) \
|
if( xRunningPrivileged == pdFALSE ) \
|
||||||
{ \
|
{ \
|
||||||
portRAISE_PRIVILEGE(); \
|
portRAISE_PRIVILEGE(); \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief If xRunningPrivileged is not pdTRUE, calls the port specific
|
* @brief If xRunningPrivileged is not pdTRUE, calls the port specific
|
||||||
* code to reset the privilege, otherwise does nothing.
|
* code to reset the privilege, otherwise does nothing.
|
||||||
*/
|
*/
|
||||||
#define vPortResetPrivilege( xRunningPrivileged ) \
|
#define vPortResetPrivilege( xRunningPrivileged ) \
|
||||||
{ \
|
{ \
|
||||||
if( xRunningPrivileged == pdFALSE ) \
|
if( xRunningPrivileged == pdFALSE ) \
|
||||||
{ \
|
{ \
|
||||||
portRESET_PRIVILEGE(); \
|
portRESET_PRIVILEGE(); \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE */
|
#endif /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue