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]

Where does the ecos ram application start from when launched by RedBoot? Thanks.


Hi all:
   Where will be the starting point when the ecos ram application launched
(download into the system ram) by RedBoot? For example target for ARM then
will it start from the reset vector(the first statement is "b
reset_vector"?)

BTW when specify the entry point for the application, would it be the first
line of code after being compiled? for ARM target:

ENTRY(reset_vector) in the target.ld file but when I dumped the a.out file
into assembly form, I saw the the first line of code is

RAM ecos application (.text from 0x40000)

00040000 <__exception_handlers>:
   40000:	e59ff018 	ldr	pc, [pc, #18]	; 40020 <vectors>
   40004:	e59ff018 	ldr	pc, [pc, #18]	; 40024 <.undefined_instruction>
   40008:	e59ff018 	ldr	pc, [pc, #18]	; 40028 <.software_interrupt>
   4000c:	e59ff018 	ldr	pc, [pc, #18]	; 4002c <.abort_prefetch>
.......
.......

0004003c <.FIQ>:
   4003c:	0004027c 	andeq	r0, r4, r12, ror r2
Disassembly of section .text:

00040040 <reset_vector>:
   40040:	e10f7000 	mrs	r7, cpsr
   40044:	e207701f 	and	r7, r7, #31	; 0x1f
   40048:	e3570013 	cmp	r7, #19	; 0x13
   4004c:	0a000007 	beq	40070 <start>
   40050:	e3a00000 	mov	r0, #0	; 0x0


rather than reset_vector, so what's the usage of  specifying the Entry Point
here ?(or Redboot start the program from Entry Point?)  Thanks a lot.


-- 
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]