[U-Boot-Users] question about interrupt

loody miloody at gmail.com
Tue May 20 04:11:57 CEST 2008


Dear all:
I have trace interrupt/Fiq vector in uboot based on smdk2410.
after we save user registers, we jump to following functions I
excerpted at the end of mail.
But these 2 functions seems not really handle the irq/fiq, would
someone please tell me where the real
interrupt handler is?

Is the interrupt handled in kernel?
if it really is, how loader pass the vector pointer to OS?
appreciate your help,
miloody


void do_fiq (struct pt_regs *pt_regs)
{
	printf ("fast interrupt request\n");
	show_regs (pt_regs);
	bad_mode ();
}

void do_irq (struct pt_regs *pt_regs)
{
#if defined (CONFIG_USE_IRQ) && defined (CONFIG_ARCH_INTEGRATOR)
	/* ASSUMED to be a timer interrupt  */
	/* Just clear it - count handled in */
	/* integratorap.c                   */
	*(volatile ulong *)(CFG_TIMERBASE + 0x0C) = 0;
#else
	printf ("interrupt request\n");
	show_regs (pt_regs);
	bad_mode ();
#endif
}




More information about the U-Boot mailing list