Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] {To TomW} GCC-Bug in IRQs

2006-03-27 by clemens fischer

> David Hawkins:

> irq_isr:
>      sub   lr, lr, #4
>      stmfd sp!, {r0-r3, ip, lr}
>      bl irq_handler
>      ldmfd sp!, {r0-r3, ip, pc}^
> 
> 
> /* VICVectAddr dispatch loop */
> void irq_handler(void)

wouldn't this handler need the "naked" attribute when using the stub
above? would you please write out the declaration in full?

> {
> 	/* Process IRQ interrupts */
> 	irq_handler_t handler;
> 	while (VICIRQStatus) {
> 		/* Get the address of the highest priority handler */
> 		handler = (irq_handler_t)VICVectAddr;
> 
> 		/* Execute the handler */
> 		(*handler)();
> 
> 		/* Acknowledge the VIC */
> 		VICVectAddr = 0;
> 	}
> }

  clemens

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.