This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: is cyg_start required for redboot.img..? -- more info.
- From: "Michael Anburaj" <embeddedeng at hotmail dot com>
- To: satish at bvt dot sc dot sanyo dot co dot jp, ecos-discuss at sources dot redhat dot com
- Date: Mon, 14 Jul 2003 04:50:47 +0000
- Subject: Re: [ECOS] is cyg_start required for redboot.img..? -- more info.
- Bcc:
Hi Satish,
my program is in a infinte loop when it enters the cyg_start
function. i believe this function calles the application program if
present, but currently i don`t have any application program running.
C does not work that way. If the routine ?symbol cyg_start? is not present,
then in the first place linker would not generate an (Redboot) image. It
would give out an error: "symbol not present". Applications cannot be called
from redboot directly, because redboot & the (ecos) App. are separate
images (symbols are not shared between them). So, what happens is.. Redboot
jump to the eCOS app. indirectly by loading its context using the
hal_thread_load_context() function in
?/packages/hal/arm/arch/current/src/centext.S?. ?movs pc,lr? will be the
last instruction in Redboot that will get executed before the eCOS app.
starts running.
Cheers,
-Mike
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss