Skip to content

Commit db2995a

Browse files
author
Kevin Moloney
committed
Fix Klocwork#91: Infinite loop
* Added comment to verify requirement for infinite loop. Signed-off-by: Kevin Moloney <[email protected]>
1 parent 62395e4 commit db2995a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/libarc32_arduino101/bootcode/interrupt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct _IsrTableEntry __attribute__((section(".data"))) _IsrTable[SS_NUM_IRQS];
3232
static void _dummy_isr(void)
3333
{
3434
__asm__ ("flag 0x01"); /* Set the halt flag => halt the CPU */
35-
for(;;);
35+
for(;;); /* This infinite loop is intentional and requested by design */
3636
}
3737

3838
void interrupt_connect(unsigned int irq, void (*isr)(void))

0 commit comments

Comments
 (0)