From 9bed81193e74af1d51de379a41e795b069b3b89b Mon Sep 17 00:00:00 2001 From: richardbarry Date: Wed, 17 Sep 2008 16:04:31 +0000 Subject: [PATCH] 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@472 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Source/portable/RVDS/ARM_CM3/port.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/portable/RVDS/ARM_CM3/port.c b/Source/portable/RVDS/ARM_CM3/port.c index 6e34f4658..09271af52 100644 --- a/Source/portable/RVDS/ARM_CM3/port.c +++ b/Source/portable/RVDS/ARM_CM3/port.c @@ -182,7 +182,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; } /*-----------------------------------------------------------*/ @@ -242,7 +242,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(); -- 2.39.5