All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] question about interrupt
@ 2008-05-20  2:11 loody
  2008-05-20  5:18 ` Chetan Nanda
  0 siblings, 1 reply; 9+ messages in thread
From: loody @ 2008-05-20  2:11 UTC (permalink / raw)
  To: u-boot

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
}

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-05-20 12:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-20  2:11 [U-Boot-Users] question about interrupt loody
2008-05-20  5:18 ` Chetan Nanda
2008-05-20  5:53   ` loody
2008-05-20  8:36     ` Chetan Nanda
2008-05-20  9:23       ` Wolfgang Denk
2008-05-20  9:40         ` Chetan Nanda
2008-05-20 12:31           ` Wolfgang Denk
2008-05-20  8:36     ` Andreas Schweigstill
2008-05-20  9:25       ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.