This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]