[ECOS] Initialization of an ARM - File "vector.S"

Tristan CORCELLE tco@teamlog.com
Mon May 27 05:27:00 GMT 2002

Hi all,

I'm working on a processor based on an ARM7TDMI. To initialize my board, I
have to write the file "hal_board_setup.h".
So, I'm trying to understand the file "vector.S" included in
"hal/arm/arch/src/" but I have problems.

1) What does mean :

#define PTR(name)               \
.##name: .word  name

What is the result when I write PTR(undefined_instruction) ?

2) The exception handlers are put at 0x00000000 but I don't understand what
are the "vectors" next to them (at 0x20). What is the idea?

3) When there is :

        .global __exception_handlers

 What is the difference between these three lines?

    ldr     r1,__exception_handlers
    ldr     r1,.__exception_handlers
    ldr     r1,=__exception_handlers

(I didn't find anything like that in the ARM web site)

     Thanks in advance

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

More information about the Ecos-discuss mailing list