[U-Boot-Users] question about interrupt

Chetan Nanda chetannanda at gmail.com
Tue May 20 07:18:53 CEST 2008


On Tue, May 20, 2008 at 7:41 AM, loody <miloody at gmail.com> wrote:
> 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
> }
>
As far as i know, U-Boot do no support interrupts, and above functions
are just the place holders.
and also Interrupts for various devices are generally not enabled in
u-boot code.

> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>




More information about the U-Boot mailing list