From: Curt Brune <curt@cucy.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] ARM exception vectors -- relocating
Date: Tue, 6 Jul 2004 10:27:30 -0700 [thread overview]
Message-ID: <20040706102730.B25870@cucy.com> (raw)
Hello,
I have a question about relocating the exception vectors for the ARM
platform. I am working with cpu/arm720t/start.S and want to use
interrupts, but I think I see a problem with the code as it stands
now. Consider the following scenario:
1. power on, cpu starts executing from address 0x0, which is located
in flash.
2. memsetup.S configures 8MB SRAM to begin at address 0x0 and remaps
flash to address 0x01000000.
3. back in start.S u-boot is relocated(copied) from flash to TEXT_BASE
= 0x007d0000.
Now the exception vectors are sitting in SRAM @ 0x007d0000 and in
flash @ 0x0100000 -- if I want to use interrupts, however, the
exception vectors need to be in SRAM at address 0x0.
Currently I have added an additional relocation step to start.S that
explicitly copies the vectors from flash to 0x0 (in SRAM) if TEXT_BASE
is not equal 0x0 (if TEXT_BASE is equal to 0x0 there is no problem).
Question: Is start.S the correct place to put this, perhaps bracketed
with "#ifdef CONFIG_USE_IRQ/#endif"? It seems like a global problem
that all arm720t boards that use interrupts would have. Or is
memsetup.S a better place for this?
Comments?
Cheers,
Curt
--
========================================================================
Curt Brune | Phone 1.650.380.2528 | Managing Principal
curt at cucy.com | WWW www.cucy.com | Cucy Systems
========================================================================
Cucy Systems -- Software. Integration. Training.
========================================================================
next reply other threads:[~2004-07-06 17:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-06 17:27 Curt Brune [this message]
2004-07-06 21:19 ` [U-Boot-Users] ARM exception vectors -- relocating Wolfgang Denk
2004-07-07 7:48 ` Marius Groeger
2004-07-07 8:09 ` Wolfgang Denk
2004-07-07 8:19 ` Marius Groeger
-- strict thread matches above, loose matches on Subject: below --
2004-07-07 9:52 Friedrich, Lars
2004-07-07 10:28 ` Marius Groeger
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=20040706102730.B25870@cucy.com \
--to=curt@cucy.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 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.