comparison packages/redboot/current/src/main.c @ 132:0ae0bc38e387 ecos-sw-2000-10-31

Merge from eCos master repository on 2000-10-31-00:30:36-GMT
author jlarmour
date Tue, 31 Oct 2000 20:53:09 +0000
parents eb9fd8c04db3
children 289bf90c6a9b
comparison
equal deleted inserted replaced
131:8461114e4f19 132:0ae0bc38e387
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 54
55 // Builtin Self Test (BIST)
56 externC void bist(void);
57
55 // GDB interfaces 58 // GDB interfaces
56 extern void breakpoint(void); 59 extern void breakpoint(void);
57 60
58 // CLI command processing (defined in this file) 61 // CLI command processing (defined in this file)
59 RedBoot_cmd("help", 62 RedBoot_cmd("help",
105 console_echo = true; 108 console_echo = true;
106 CYGACC_CALL_IF_DELAY_US(2*100000); 109 CYGACC_CALL_IF_DELAY_US(2*100000);
107 110
108 ram_start = (unsigned char *)CYGMEM_REGION_ram; 111 ram_start = (unsigned char *)CYGMEM_REGION_ram;
109 ram_end = (unsigned char *)(CYGMEM_REGION_ram+CYGMEM_REGION_ram_SIZE); 112 ram_end = (unsigned char *)(CYGMEM_REGION_ram+CYGMEM_REGION_ram_SIZE);
113
114 bist();
110 115
111 printf("\nRedBoot(tm) debug environment - built %s, %s\n", __TIME__, __DATE__); 116 printf("\nRedBoot(tm) debug environment - built %s, %s\n", __TIME__, __DATE__);
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
272 HAL_DCACHE_SYNC(); 277 HAL_DCACHE_SYNC();
273 HAL_ICACHE_INVALIDATE_ALL(); 278 HAL_ICACHE_INVALIDATE_ALL();
274 HAL_DCACHE_INVALIDATE_ALL(); 279 HAL_DCACHE_INVALIDATE_ALL();
275 (*fun)(); 280 (*fun)();
276 } 281 }
282
283 //
284 // [Null] Builtin [Power On] Self Test
285 //
286 void bist(void) CYGBLD_ATTRIB_WEAK;
287
288 void
289 bist(void)
290 {
291 }