Changeset 3652ad35 in rtems for c/src/lib/libbsp/no_cpu/no_bsp
- Timestamp:
- 09/19/95 14:53:29 (28 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 38ffa0c
- Parents:
- b3ac6a8d
- Location:
- c/src/lib/libbsp/no_cpu/no_bsp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/no_cpu/no_bsp/console/console.c
rb3ac6a8d r3652ad35 205 205 outbyte( buffer[ count ] ); 206 206 } 207 return maximum; 207 208 rw_args->bytes_moved = maximum; 209 return 0; 208 210 } 209 211 -
c/src/lib/libbsp/no_cpu/no_bsp/startup/bspstart.c
rb3ac6a8d r3652ad35 84 84 else 85 85 libc_init(0); /* non-reentrant */ 86 86 } 87 88 /* 89 * Function: bsp_pretasking_hook 90 * Created: 95/03/10 91 * 92 * Description: 93 * BSP pretasking hook. Called just before drivers are initialized. 94 * Used to setup libc and install any BSP extensions. 95 * 96 * NOTES: 97 * Must not use libc (to do io) from here, since drivers are 98 * not yet initialized. 99 * 100 */ 101 102 void 103 bsp_pretasking_hook(void) 104 { 105 bsp_libc_init(); 106 107 #ifdef STACK_CHECKER_ON 87 108 /* 88 109 * Initialize the stack bounds checker 89 * /90 91 #ifdef STACK_CHECKER_ON 110 * We can either turn it on here or from the app. 111 */ 112 92 113 Stack_check_Initialize(); 93 114 #endif 94 } 115 116 #ifdef RTEMS_DEBUG 117 rtems_debug_enable( RTEMS_DEBUG_ALL_MASK ); 118 #endif 119 } 120 95 121 96 122 /* … … 120 146 } 121 147 122 int main(148 int bsp_start( 123 149 int argc, 124 150 char **argv, … … 197 223 */ 198 224 199 Cpu_table.pretasking_hook = NULL;200 201 Cpu_table.predriver_hook = bsp_libc_init; /* RTEMS resources available */225 Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */ 226 227 Cpu_table.predriver_hook = NULL; 202 228 203 229 Cpu_table.postdriver_hook = bsp_postdriver_hook; -
c/src/lib/libbsp/no_cpu/no_bsp/startup/main.c
rb3ac6a8d r3652ad35 20 20 int main( 21 21 int argc, 22 char **argv 22 char **argv, 23 char **environp 23 24 ) 24 25 { 25 bsp_start( );26 bsp_start( argc, argv, environp ); 26 27 27 28 /*
Note: See TracChangeset
for help on using the changeset viewer.