From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Interrupts in uboot with ARM AT91SAM9 (V2)
Date: Sat, 5 Sep 2009 02:49:26 +0200 [thread overview]
Message-ID: <20090905004926.GG30118@game.jcrosoft.org> (raw)
In-Reply-To: <4A9F9AD4.187F.00BC.1@feig.de>
On 10:31 Thu 03 Sep , Manuel Sahm wrote:
> Hello,
>
> I have to use interrupts in UBoot 1.3.4 - how could I enable them ?
>
> I have an AT91SAM9G20 - in ist header file I enable CONFIG_USE_IRQ und
> uncomment the lines#ifdefc CONFIG_USE_IRQ #error .... #endif.
> I inserted the lines:
> #define CONFIG_STACKSIZE_IRQ (4*1024)
> #define CONFIG_STACKSIZE_FIQ (4*1024)
>
>
> In the file (/lib_amr/interrupts.c) I have to insert a function called
> do_irq().
> I inserted:
>
> void do_irq(struct pt_regs* pt_regs)
> {
> printf("interrupt request\n");
> show_regs(pt_regs);
> bad_mode();
> }
>
> When UBOOT starts all seems to be OK, but if I trigger my interrupt -
> the system hangs....nothing is printed on screen anmd I can?t enter
> anything in the prompt ?
>
> Could you please help me.... ?
you need to clear the interrupt and add the at91 interrupt controller
to use it
Best Regards,
J.
next prev parent reply other threads:[~2009-09-05 0:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-03 8:31 [U-Boot] Interrupts in uboot with ARM AT91SAM9 (V2) Manuel Sahm
2009-09-05 0:49 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2009-09-08 8:59 ` [U-Boot] Antw: " Manuel Sahm
-- strict thread matches above, loose matches on Subject: below --
2009-09-14 9:37 [U-Boot] " Manuel Sahm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090905004926.GG30118@game.jcrosoft.org \
--to=plagnioj@jcrosoft.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox