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: is cyg_start required for redboot.img..? -- more info.


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


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