From: richardbarry Date: Fri, 7 Mar 2008 11:08:10 +0000 (+0000) Subject: Clear the interrupt prior to servicing the interrupt - previously it was the other... X-Git-Tag: V4.8.0~43 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a1a928054c42b7f3e69c74e23d4bffd7943ac130;p=freertos Clear the interrupt prior to servicing the interrupt - previously it was the other way around. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@238 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/portable/GCC/PPC405_Xilinx/port.c b/Source/portable/GCC/PPC405_Xilinx/port.c index d6f0d41f8..23acc2647 100644 --- a/Source/portable/GCC/PPC405_Xilinx/port.c +++ b/Source/portable/GCC/PPC405_Xilinx/port.c @@ -245,13 +245,12 @@ XIntc_VectorTableEntry *pxTable; { if( ulInterruptStatus & 0x01UL ) { + /* Clear the pending interrupt. */ + XIntc_mAckIntr( pxInterruptController->BaseAddress, ulInterruptMask ); + /* Call the registered handler. */ pxTable = &( pxInterruptController->HandlerTable[ xInterruptNumber ] ); pxTable->Handler( pxTable->CallBackRef ); - - /* Clear the pending interrupt. */ - XIntc_mAckIntr( pxInterruptController->BaseAddress, ulInterruptMask ); - break; } /* Check the next interrupt. */