mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
Add portENTER_CRITICAL() macro. Previously it was an inline asm function but it needs to be a macro for portable.h to compile.
This commit is contained in:
parent
b57e4f4c36
commit
cae143cbbf
|
@ -84,10 +84,13 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
/* Critical section definitions. */
|
/* Critical section definitions. portENTER_CRITICAL() must be defined as a
|
||||||
void portENTER_CRITICAL( void );
|
macro for portable.h to work properly. */
|
||||||
#pragma aux portENTER_CRITICAL = "pushf" \
|
void portLOCAL_ENTER_CRITICAL( void );
|
||||||
|
#pragma aux portLOCAL_ENTER_CRITICAL = "pushf" \
|
||||||
"cli";
|
"cli";
|
||||||
|
#define portENTER_CRITICAL() portLOCAL_ENTER_CRITICAL()
|
||||||
|
|
||||||
void portEXIT_CRITICAL( void );
|
void portEXIT_CRITICAL( void );
|
||||||
#pragma aux portEXIT_CRITICAL = "popf";
|
#pragma aux portEXIT_CRITICAL = "popf";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue