]> git.sur5r.net Git - freertos/commitdiff
Clear the interrupt prior to servicing the interrupt - previously it was the other...
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Fri, 7 Mar 2008 11:08:10 +0000 (11:08 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Fri, 7 Mar 2008 11:08:10 +0000 (11:08 +0000)
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

index d6f0d41f8033667071b27fcfdd52f8316993d094..23acc26473759045f990f50ef0a5a44ab8bf3a94 100644 (file)
@@ -245,13 +245,12 @@ XIntc_VectorTableEntry *pxTable;
        {\r
                if( ulInterruptStatus & 0x01UL )\r
                {\r
+                       /* Clear the pending interrupt. */\r
+                       XIntc_mAckIntr( pxInterruptController->BaseAddress, ulInterruptMask );\r
+\r
                        /* Call the registered handler. */\r
                        pxTable = &( pxInterruptController->HandlerTable[ xInterruptNumber ] );\r
                        pxTable->Handler( pxTable->CallBackRef );\r
-\r
-                       /* Clear the pending interrupt. */\r
-                       XIntc_mAckIntr( pxInterruptController->BaseAddress, ulInterruptMask );\r
-                       break;\r
                }\r
         \r
                /* Check the next interrupt. */\r