This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: ARM vectors.S question. Thank you.
- From: "Eric de Jong" <list_ericdejong_10 at gmx dot net>
- To: "Ecos-Discuss" <ecos-discuss at sources dot redhat dot com>
- Date: Mon, 23 Jun 2003 09:50:11 +0200
- Subject: Re: [ECOS] ARM vectors.S question. Thank you.
- References: <BDEPKKELILOKGOAOMONOIEOECDAA.jameshq@liv.ac.uk>
>> 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