This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: redboot cyg_start routine
- 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 07:13:41 +0000
- Subject: Re: [ECOS] redboot cyg_start routine
- Bcc:
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