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: redboot cyg_start routine


Hi Satish,


the problem is i see a indefinite loop in the assembly code i.e at address 30004684 which branches to the address 30004648 always unconditionally..can some one justify this..?

and which is its equivalent source line..?


The equivalent in main.c at cyg_start():

   while (true) {
       if (prompt) {
           diag_printf("RedBoot> ");
           prompt = false;
       }
#if CYGNUM_REDBOOT_CMD_LINE_EDITING != 0
       cmd_history = true;  // Enable history collection
#endif
       res = _rb_gets(line, sizeof(line), CYGNUM_REDBOOT_CLI_IDLE_TIMEOUT);
#if CYGNUM_REDBOOT_CMD_LINE_EDITING != 0
       cmd_history = false;  // Enable history collection
#endif
       if (res == _GETS_TIMEOUT) {
           // No input arrived
       } else {


This is the redboot even loop that's waiting for Reboot or GDB commands. The call to _rb_gets() read the console & feeds the command strings to this loop.


-Mike.

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 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]