This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Putting interrupt/exception handling codes in different section
- To: Ho Shui Choy Stanley PS03B NCS <scho at ncs dot com dot sg>
- Subject: Re: [ECOS] Putting interrupt/exception handling codes in different section
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 15 May 2001 14:08:26 +0100
- Cc: "Ecos-Discuss (E-mail)" <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat UK Ltd.
- References: <19C34CD863B1D4118E2800508BAF663A0112F635@STONE>
Ho Shui Choy Stanley PS03B NCS wrote:
>
> Currently, the .text section of the codes resides in external flash memory.
> As the access speed of the external flash is slow, I like to move certain
> part of the text section to the internal memory for better performance.
>
> I like to separate the interrupt and exception handling codes from the
> ".text" section to another section in the internal memory. Is possible to do
> that? How can I do that?
It should just be a case of adding
.section ".mysection","ax" before the exception handling code in the
architecture vectors.S and then add a section in the memory layout and
architecture .ld file. The linker should deal with the relocations. Don't
forget to put a ".text" back after the code you've relocated.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine