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]
Other format: [Raw text]

Re: ARM vectors.S question. Thank you.


>>        ldr     r1,=__exception_handlers
>>        // **Question 1** Is r1 = 0x40000 here ???

see the following code:
----
        .code   32
        .section ".vectors","ax"

// This macro allows platforms to add their own code at the very start of
// the image.  This may be required in some circumstances where eCos ROM
// based code does not run immediately upon reset and/or when some sort of
// special header is required at the start of the image.
#ifdef PLATFORM_PREAMBLE
        PLATFORM_PREAMBLE
#endif

        .global __exception_handlers
__exception_handlers:
----

this shows the definition of the __exception_handlers (__exception_handlers:)
which is a label and is translated to the address of the following code.
The line .code   32 and .section ".vectors","ax" makes that the following code
is located in section  ".vectors". That section is placed by the linker at a
specific addres specified in the target.ld file.

Eric


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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