From ade2da38edb1e2c38837ebce65d1f1600c517510 Mon Sep 17 00:00:00 2001 From: Richard Barry 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. --- 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 d6f0d41f80..23acc26473 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. */