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: returning to RedBoot after executing ecos application


>>>>> John Stone writes:

> Hi all,
> I am trying ecos/Redboot to work with x86 pc platform that boots from floppy. I would like to return to redboot prompt without calling hal_pc_reset(). 

> Is there a way to call redboot entry points from ecos application ( e.g returning to do_go)? - i.e a mechanism to call return_to_redboot() from cyg_user_start(). One way is to write redboot.bin addresses of the entry points I am looking for in a header file and use them when my application terminates given that redboot code is not over-written by ecos app? 

> I'll appreciate any help and thoughts about how to go about this?

#include <cyg/hal/hal_if.h>             // ROM calling interface
...
    CYGACC_CALL_IF_MONITOR_RETURN(exit_status);

should do it as long as the application doesn't do anything to
upset RedBoot while its running.

--Mark


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