Revert critical section handling back to the original method.

This commit is contained in:
Richard Barry 2008-02-15 13:33:44 +00:00
parent 991624461f
commit 61efe2504c
3 changed files with 20 additions and 65 deletions

View file

@ -78,6 +78,12 @@
/*-----------------------------------------------------------*/
/* Critical section management. */
#if configKERNEL_INTERRUPT_PRIORITY != 30
#error configKERNEL_INTERRUPT_PRIORITY (set in FreeRTOSConfig.h) must match the ILM value set in the following line - 30 (1Eh) being the default.
#endif
#define portDISABLE_INTERRUPTS() __asm(" STILM #1Eh ")
#define portENABLE_INTERRUPTS() __asm(" MOVL ILM, #1Fh ")
#define portENTER_CRITICAL() \
__asm(" ST PS,@-R15 "); \
__asm(" ANDCCR #0xef "); \
@ -86,9 +92,6 @@
#define portEXIT_CRITICAL() \
__asm(" LD @R15+,PS "); \
#define portDISABLE_INTERRUPTS() __DI();
#define portENABLE_INTERRUPTS() __EI();
/*-----------------------------------------------------------*/
/* Architecture specifics. */