comparison packages/redboot/current/src/main.c @ 145:2e9a636d9de9 ecos-sw-2000-12-21

Merge from eCos master repository on 2000-12-21-14:18:40-GMT
author jlarmour
date Fri, 22 Dec 2000 02:37:28 +0000
parents 6b5f480c6929
children d397fc472bcf
comparison
equal deleted inserted replaced
144:da1052144c56 145:2e9a636d9de9
49 #include <cyg/hal/hal_intr.h> 49 #include <cyg/hal/hal_intr.h>
50 #include <cyg/hal/hal_cache.h> 50 #include <cyg/hal/hal_cache.h>
51 #include CYGHWR_MEMORY_LAYOUT_H 51 #include CYGHWR_MEMORY_LAYOUT_H
52 52
53 #include <cyg/hal/hal_tables.h> 53 #include <cyg/hal/hal_tables.h>
54 #ifdef CYGBLD_HAL_PLATFORM_STUB_H
55 #include CYGBLD_HAL_PLATFORM_STUB_H
56 #else
54 #include <cyg/hal/plf_stub.h> 57 #include <cyg/hal/plf_stub.h>
58 #endif
55 59
56 // Builtin Self Test (BIST) 60 // Builtin Self Test (BIST)
57 externC void bist(void); 61 externC void bist(void);
58 62
59 // GDB interfaces 63 // GDB interfaces
106 #endif 110 #endif
107 111
108 void 112 void
109 do_version(int argc, char *argv[]) 113 do_version(int argc, char *argv[])
110 { 114 {
111 printf("\nRedBoot(tm) debug environment - built %s, %s\n", __TIME__, __DATE__); 115 extern char RedBoot_version[];
116 printf(RedBoot_version);
112 #ifdef HAL_PLATFORM_CPU 117 #ifdef HAL_PLATFORM_CPU
113 printf("Platform: %s (%s) %s\n", HAL_PLATFORM_BOARD, HAL_PLATFORM_CPU, HAL_PLATFORM_EXTRA); 118 printf("Platform: %s (%s) %s\n", HAL_PLATFORM_BOARD, HAL_PLATFORM_CPU, HAL_PLATFORM_EXTRA);
114 #endif 119 #endif
115 printf("Copyright (C) 2000, Red Hat, Inc.\n\n"); 120 printf("Copyright (C) 2000, Red Hat, Inc.\n\n");
116 printf("RAM: %p-%p\n", (void*)ram_start, (void*)ram_end); 121 printf("RAM: %p-%p\n", (void*)ram_start, (void*)ram_end);