From e066401a150307566a453cc7bf691b2cf7ac5a74 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Mon, 22 Sep 2008 18:08:29 +0000 Subject: [PATCH] Use the low force register. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@482 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Source/portable/GCC/ColdFire_V2/port.c | 4 ++-- Source/portable/GCC/ColdFire_V2/portmacro.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/portable/GCC/ColdFire_V2/port.c b/Source/portable/GCC/ColdFire_V2/port.c index 6036f8540..22f11feb6 100644 --- a/Source/portable/GCC/ColdFire_V2/port.c +++ b/Source/portable/GCC/ColdFire_V2/port.c @@ -115,7 +115,7 @@ void vPortEnterCritical( void ) do { portDISABLE_INTERRUPTS(); - if( MCF_INTC0_INTFRCH == 0UL ) + if( MCF_INTC0_INTFRCL == 0UL ) { break; } @@ -144,7 +144,7 @@ unsigned portLONG ulSavedInterruptMask; ulSavedInterruptMask = portSET_INTERRUPT_MASK_FROM_ISR(); /* Note this will clear all forced interrupts - this is done for speed. */ - MCF_INTC0_INTFRCH = 0; + MCF_INTC0_INTFRCL = 0; vTaskSwitchContext(); portCLEAR_INTERRUPT_MASK_FROM_ISR( ulSavedInterruptMask ); } diff --git a/Source/portable/GCC/ColdFire_V2/portmacro.h b/Source/portable/GCC/ColdFire_V2/portmacro.h index 442a69a17..564529312 100644 --- a/Source/portable/GCC/ColdFire_V2/portmacro.h +++ b/Source/portable/GCC/ColdFire_V2/portmacro.h @@ -109,7 +109,7 @@ extern void vPortClearInterruptMaskFromISR( unsigned portBASE_TYPE ); #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. */ +#define portYIELD() MCF_INTC0_INTFRCL = ( 1UL << configYIELD_INTERRUPT_VECTOR ); portNOP(); portNOP() /*-----------------------------------------------------------*/ -- 2.39.2