From: RichardBarry Date: Wed, 17 Sep 2008 16:01:56 +0000 (+0000) Subject: BUG FIX: Changed X-Git-Tag: V5.1.2~226 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=89a512770073cd588f083c4374fadac5c707b4bb;p=freertos BUG FIX: Changed *(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET; to *(portNVIC_INT_CTRL) = portNVIC_PENDSVSET; git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@470 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/portable/IAR/ARM_CM3/port.c b/Source/portable/IAR/ARM_CM3/port.c index cc38be73a..900acb98b 100644 --- a/Source/portable/IAR/ARM_CM3/port.c +++ b/Source/portable/IAR/ARM_CM3/port.c @@ -159,7 +159,7 @@ void vPortEndScheduler( void ) void vPortYieldFromISR( void ) { /* Set a PendSV to request a context switch. */ - *(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET; + *(portNVIC_INT_CTRL) = portNVIC_PENDSVSET; } /*-----------------------------------------------------------*/ @@ -186,7 +186,7 @@ unsigned portLONG ulDummy; /* If using preemption, also force a context switch. */ #if configUSE_PREEMPTION == 1 - *(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET; + *(portNVIC_INT_CTRL) = portNVIC_PENDSVSET; #endif ulDummy = portSET_INTERRUPT_MASK_FROM_ISR();