]> git.sur5r.net Git - freertos/commitdiff
BUG FIX: Changed
authorRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 17 Sep 2008 16:01:56 +0000 (16:01 +0000)
committerRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 17 Sep 2008 16:01:56 +0000 (16:01 +0000)
*(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

Source/portable/IAR/ARM_CM3/port.c

index cc38be73a4c565916832a81a5b2c0ca19f411270..900acb98b84ce14a54306ef3a143e3e882f5075f 100644 (file)
@@ -159,7 +159,7 @@ void vPortEndScheduler( void )
 void vPortYieldFromISR( void )\r
 {\r
        /* Set a PendSV to request a context switch. */\r
-       *(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET;\r
+       *(portNVIC_INT_CTRL) = portNVIC_PENDSVSET;\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
@@ -186,7 +186,7 @@ unsigned portLONG ulDummy;
 \r
        /* If using preemption, also force a context switch. */\r
        #if configUSE_PREEMPTION == 1\r
-               *(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET;     \r
+               *(portNVIC_INT_CTRL) = portNVIC_PENDSVSET;      \r
        #endif\r
 \r
        ulDummy = portSET_INTERRUPT_MASK_FROM_ISR();\r