summaryrefslogtreecommitdiff
path: root/Source/portable/GCC/ColdFire_V2/portmacro.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/portable/GCC/ColdFire_V2/portmacro.h')
-rw-r--r--Source/portable/GCC/ColdFire_V2/portmacro.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/portable/GCC/ColdFire_V2/portmacro.h b/Source/portable/GCC/ColdFire_V2/portmacro.h
index 3b002423..73445ae4 100644
--- a/Source/portable/GCC/ColdFire_V2/portmacro.h
+++ b/Source/portable/GCC/ColdFire_V2/portmacro.h
@@ -106,12 +106,11 @@ extern void vPortClearInterruptMaskFromISR( unsigned portBASE_TYPE );
/* Task utilities. */
-#define portYIELD() MCF_INTC0_INTFRCH |= ( 1UL << ( configYIELD_INTERRUPT_VECTOR - 32UL ) ); portNOP(); portNOP(); portNOP() /* -32 as we are using the high word of the 64bit mask. */
-
-
-
#define portNOP() asm volatile ( "nop" )
+/* Note this will overwrite all other bits in the force register, it is done this way for speed. */
+#define portYIELD() MCF_INTC0_INTFRCH = ( 1UL << ( configYIELD_INTERRUPT_VECTOR - 32UL ) ); portNOP(); portNOP() /* -32 as we are using the high word of the 64bit mask. */
+
/*-----------------------------------------------------------*/
/* Task function macros as described on the FreeRTOS.org WEB site. */