]> git.sur5r.net Git - freertos/commitdiff
BUG FIX: Changed
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 17 Sep 2008 16:04:31 +0000 (16:04 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 17 Sep 2008 16:04:31 +0000 (16:04 +0000)
*(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET;
to
*(portNVIC_INT_CTRL) = portNVIC_PENDSVSET;

git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@472 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/portable/RVDS/ARM_CM3/port.c

index 6e34f4658e05c5543e871274af379c15efac1a81..09271af5208fc1ed3c16624db503945ce34c794b 100644 (file)
@@ -182,7 +182,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
@@ -242,7 +242,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