From a1a928054c42b7f3e69c74e23d4bffd7943ac130 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Fri, 7 Mar 2008 11:08:10 +0000 Subject: [PATCH] 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 --- Source/portable/GCC/PPC405_Xilinx/port.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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. */ -- 2.39.5