mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Revert to original critical section handling method.
This commit is contained in:
parent
f44fc2c665
commit
991624461f
2 changed files with 8 additions and 50 deletions
|
@ -78,10 +78,14 @@
|
|||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* Critical section management. */
|
||||
void vPortEnterCritical( void );
|
||||
void vPortExitCritical( void );
|
||||
#define portENTER_CRITICAL() vPortEnterCritical()
|
||||
#define portEXIT_CRITICAL() vPortExitCritical()
|
||||
#define portENTER_CRITICAL() \
|
||||
__asm(" ST PS,@-R15 "); \
|
||||
__asm(" ANDCCR #0xef "); \
|
||||
|
||||
|
||||
#define portEXIT_CRITICAL() \
|
||||
__asm(" LD @R15+,PS "); \
|
||||
|
||||
#define portDISABLE_INTERRUPTS() __DI();
|
||||
#define portENABLE_INTERRUPTS() __EI();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue