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: "'Jonathan Larmour'" <jlarmour at redhat dot com>
- Subject: RE: [ECOS] Putting interrupt/exception handling codes in different section
- From: Ho Shui Choy Stanley PS03B NCS <scho at ncs dot com dot sg>
- Date: Wed, 16 May 2001 10:26:43 +0800
- Cc: "Ecos-Discuss (E-mail)" <ecos-discuss at sources dot redhat dot com>
I have done that by using the ".sram" section defined in "arm.ld" but I'm
having error building.
Most errors are at the following statment
in ".sram"
ldr sp,.__undef_exception_stack // get good stack
in ".text"
PTR(__undef_exception_stack)
-----Original Message-----
From: Jonathan Larmour [mailto:jlarmour@redhat.com]
Sent: Tuesday, May 15, 2001 21:08
To: Ho Shui Choy Stanley PS03B NCS
Cc: Ecos-Discuss (E-mail)
Subject: Re: [ECOS] Putting interrupt/exception handling codes in
different section
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