From: Nishanth Menon <menon.nishanth@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Vector set up in u-boot for OMAP3530.
Date: Wed, 04 Mar 2009 13:57:39 +0200 [thread overview]
Message-ID: <49AE6CB3.8060807@gmail.com> (raw)
In-Reply-To: <VSNLCHNFE001XbY5koT00063a90@VSNLCHNFE001.VSNLXCHANGE.COM>
Rahanesh said the following on 03/04/2009 01:23 PM:
> I am trying to set up vector table for a my custom RTOS.
>
> ARM provides 0x0000:0000 and 0xFFFF:0000 as the Vector base address.
>
> I planned to use 0x0000:0000 for my development.
>
> I have decided to hard-code the opcode for the corresponding branches to
> the loactions respectively.(0x00000000 to 0x0000001C)
>
> When i write to 0x00000000 location , i get a prefetch abort exception. Why
> am i not able to write to 0x00000000?
>
Some basics on interrupt vector handling on cortex_a8: CP15 coprocessor
forallows:
* legacy high and low interrupt vectors
* also allows you to program interrupt vector of your choosing.
please read the ARM architecture Manual and the ARM technical reference
manual for further information.
if you look at the OMAP3 TRM, you will find 0x0 belonging to GPMC
address space, unless you mapped something there, ARM will not find an
vector to execute.
>
> How did U boot handle this? How did U boot set up Vector table?
>
in OMAP3, we have rom code which setups a trampoline vector in SRAM.
this is piggybacked to handle the interrupts. the omap3 code probably
does not use interrupts extensively at this stage, but yeah, that is one
way to do it.. but you would need ROM Code executing prior to your code
to get this.
one way to go about this is to enable MMU and map 0x0 to which ever
address space you want (if you want to use the "old style" of doing arm
interrupts..
>
>
> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.
>
>
Please... we have this long aversion to this form of copyright
information tailer.. please do not claim that it is always present for
mails from you company.. if so, use a different mail id such as gmail etc..
Regards,
Nishanth Menon
prev parent reply other threads:[~2009-03-04 11:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-04 11:23 [U-Boot] Vector set up in u-boot for OMAP3530 Rahanesh
2009-03-04 11:57 ` Nishanth Menon [this message]
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=49AE6CB3.8060807@gmail.com \
--to=menon.nishanth@gmail.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