Mercurial > ecos
diff packages/redboot/current/src/main.c @ 138:289bf90c6a9b
Merge from eCos master repository on 2000-11-24-06:43:05-GMT
| author | jlarmour |
|---|---|
| date | Fri, 24 Nov 2000 07:49:02 +0000 |
| parents | 0ae0bc38e387 |
| children | 450e4e1f1e80 |
line wrap: on
line diff
--- a/packages/redboot/current/src/main.c +++ b/packages/redboot/current/src/main.c @@ -59,6 +59,11 @@ externC void bist(void); extern void breakpoint(void); // CLI command processing (defined in this file) +RedBoot_cmd("version", + "Display RedBoot version information", + "", + do_version + ); RedBoot_cmd("help", "Help about help?", "<topic>", @@ -88,6 +93,17 @@ CYG_HAL_TABLE_BEGIN( __RedBoot_CMD_TAB__ CYG_HAL_TABLE_END( __RedBoot_CMD_TAB_END__, RedBoot_commands ); extern struct cmd __RedBoot_CMD_TAB__[], __RedBoot_CMD_TAB_END__; +void +do_version(int argc, char *argv[]) +{ + printf("\nRedBoot(tm) debug environment - built %s, %s\n", __TIME__, __DATE__); +#ifdef HAL_PLATFORM_CPU + printf("Platform: %s (%s) %s\n", HAL_PLATFORM_BOARD, HAL_PLATFORM_CPU, HAL_PLATFORM_EXTRA); +#endif + printf("Copyright (C) 2000, Red Hat, Inc.\n\n"); + printf("RAM: %p-%p\n", ram_start, ram_end); +} + // // This is the main entry point for RedBoot // @@ -113,12 +129,7 @@ cyg_start(void) bist(); - printf("\nRedBoot(tm) debug environment - built %s, %s\n", __TIME__, __DATE__); -#ifdef HAL_PLATFORM_CPU - printf("Platform: %s (%s) %s\n", HAL_PLATFORM_BOARD, HAL_PLATFORM_CPU, HAL_PLATFORM_EXTRA); -#endif - printf("Copyright (C) 2000, Red Hat, Inc.\n\n"); - printf("RAM: %p-%p\n", ram_start, ram_end); + do_version(0,0); config_ok = false;
