Changeset b6394ae in rtems
- Timestamp:
- 04/15/98 15:13:01 (25 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- bd9c3d1
- Parents:
- b3d3a34e
- Location:
- c/src/lib/libbsp
- Files:
-
- 63 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/a29k/portsw/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=bspclean bsp post bspstart main sbrk setvec iface14 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec iface 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/a29k/portsw/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bsp_start() 2 * 1 /* 3 2 * This routine starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. 5 4 * The generic CPU dependent initialization has been performed 6 5 * before this routine is invoked. 7 *8 * INPUT: NONE9 *10 * OUTPUT: NONE11 6 * 12 7 * COPYRIGHT (c) 1989-1998. … … 54 49 rtems_unsigned32 heap_start; 55 50 56 void bsp_libc_init() 57 { 58 heap_size = 2 * 1024 * 1024; /* allocate a maximum of 2 megabytes for the heap */ 59 60 /* allocate all remaining memory to the heap */ 61 do { 62 heap_size -= HEAP_BLOCK_SIZE; 63 heap_start = _sysalloc( heap_size ); 64 } while ( !heap_start ); 65 66 if (!heap_start) 67 rtems_fatal_error_occurred( heap_size ); 68 69 if (heap_start & (CPU_ALIGNMENT-1)) 70 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 71 72 /* 73 * The last parameter to RTEMS_Malloc_Initialize is the "chunk" 74 * size which a multiple of will be requested on each sbrk() 75 * call by malloc(). A value of 0 indicates that sbrk() should 76 * not be called to extend the heap. 77 */ 78 79 RTEMS_Malloc_Initialize((void *) heap_start, heap_size, 0); 80 81 /* 82 * Init the RTEMS libio facility to provide UNIX-like system 83 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 84 * Uses malloc() to get area for the iops, so must be after malloc init 85 */ 86 87 rtems_libio_init(); 88 89 /* 90 * Set up for the libc handling. 91 */ 92 93 if (BSP_Configuration.ticks_per_timeslice > 0) 94 libc_init(1); /* reentrant if possible */ 95 else 96 libc_init(0); /* non-reentrant */ 97 98 } 51 /* 52 * Use the shared implementations of the following routines 53 */ 54 55 void bsp_postdriver_hook(void); 56 void bsp_libc_init( void *, unsigned32, int ); 99 57 100 58 /* … … 112 70 */ 113 71 114 void 115 bsp_pretasking_hook(void) 72 void bsp_pretasking_hook(void) 116 73 { 117 bsp_libc_init(); 74 /* allocate a maximum of 2 megabytes for the heap */ 75 heap_size = 2 * 1024 * 1024; 76 77 /* allocate all remaining memory to the heap */ 78 do { 79 heap_size -= HEAP_BLOCK_SIZE; 80 heap_start = _sysalloc( heap_size ); 81 } while ( !heap_start ); 82 83 if (!heap_start) 84 rtems_fatal_error_occurred( heap_size ); 85 86 if (heap_start & (CPU_ALIGNMENT-1)) 87 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 88 89 90 bsp_libc_init((void *) heap_start, heap_size, 0); 91 118 92 119 93 #ifdef RTEMS_DEBUG … … 122 96 } 123 97 124 125 98 /* 126 * Use the shared bsp_postdriver_hook() implementation 99 * bsp_start 100 * 101 * This routine does the bulk of the system initialization. 127 102 */ 128 129 void bsp_postdriver_hook(void);130 103 131 104 int bsp_start( -
c/src/lib/libbsp/hppa1.1/simhppa/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=bspclean bsp post bspstart main sbrk setvec14 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/hppa1.1/simhppa/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bsp_start() 2 * 1 /* 3 2 * This routine starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. … … 6 5 * before this routine is invoked. 7 6 * 8 * Called by RTEMS::RTEMS constructor in startup-ctor.cc9 *10 * INPUT: NONE11 *12 * OUTPUT: NONE13 *14 7 * COPYRIGHT (c) 1989-1998. 15 8 * On-Line Applications Research Corporation (OAR). … … 57 50 */ 58 51 59 rtems_extension 60 fast_idle_switch_hook(rtems_tcb *current_task, 61 rtems_tcb *heir_task) 52 rtems_extension fast_idle_switch_hook( 53 rtems_tcb *current_task, 54 rtems_tcb *heir_task 55 ) 62 56 { 63 57 static rtems_unsigned32 normal_clock = ~0; … … 87 81 88 82 /* 89 * Function: bsp_libc_init 90 * Created: 94/12/6 83 * Use the shared implementations of the following routines 84 */ 85 86 void bsp_postdriver_hook(void); 87 void bsp_libc_init( void *, unsigned32, int ); 88 89 /* 90 * Function: bsp_pretasking_hook 91 * Created: 95/03/10 91 92 * 92 93 * Description: 93 * Initialize whatever libc we are using 94 * called from bsp_postdriver_hook 95 * 96 * 97 * Parameters: 98 * none 99 * 100 * Returns: 101 * none. 102 * 103 * Side Effects: 104 * 94 * BSP pretasking hook. Called just before drivers are initialized. 95 * Used to setup libc and install any BSP extensions. 105 96 * 106 97 * Notes: 107 * 108 * Deficiencies/ToDo: 109 * 110 * 111 */ 112 113 void 114 bsp_libc_init(void) 98 * Must not use libc (to do io) from here, since drivers are 99 * not yet initialized. 100 */ 101 102 void bsp_pretasking_hook(void) 115 103 { 116 104 extern int end; … … 121 109 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 122 110 123 RTEMS_Malloc_Initialize((void *) heap_start, 64 * 1024, 0); 124 125 /* 126 * Init the RTEMS libio facility to provide UNIX-like system 127 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 128 * Uses malloc() to get area for the iops, so must be after malloc init 129 */ 130 131 rtems_libio_init(); 132 133 /* 134 * Set up for the libc handling. 135 * XXX; this should allow for case of some other non-clock interrupts 136 */ 137 138 if (BSP_Configuration.ticks_per_timeslice > 0) 139 libc_init(1); /* reentrant if possible */ 140 else 141 libc_init(0); /* non-reentrant */ 111 bsp_libc_init((void *) heap_start, 64 * 1024, 0); 142 112 143 113 /* … … 152 122 use_print_buffer = 1; 153 123 #endif 154 }155 156 157 /*158 * Function: bsp_pretasking_hook159 * Created: 95/03/10160 *161 * Description:162 * BSP pretasking hook. Called just before drivers are initialized.163 * Used to setup libc and install any BSP extensions.164 *165 * Parameters:166 * none167 *168 * Returns:169 * nada170 *171 * Side Effects:172 * installs a few extensions173 *174 * Notes:175 * Must not use libc (to do io) from here, since drivers are176 * not yet initialized.177 *178 * Deficiencies/ToDo:179 *180 *181 */182 183 void184 bsp_pretasking_hook(void)185 {186 bsp_libc_init();187 124 188 125 #if SIMHPPA_FAST_IDLE … … 213 150 #endif 214 151 } 215 216 /*217 * Use the shared bsp_postdriver_hook() implementation218 */219 220 void bsp_postdriver_hook(void);221 222 /*223 * Function: bsp_start224 * Created: 94/12/6225 *226 * Description:227 * called by crt0 as our "main" equivalent228 *229 *230 *231 * Parameters:232 *233 *234 * Returns:235 *236 *237 * Side Effects:238 *239 *240 * Notes:241 *242 *243 * Deficiencies/ToDo:244 *245 *246 */247 152 248 153 void bsp_start(void) -
c/src/lib/libbsp/i386/force386/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=bspclean bsp post bspstart main sbrk setvec14 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/i386/force386/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bsp_start() 2 * 1 /* 3 2 * This routine starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. 5 4 * The generic CPU dependent initialization has been performed 6 5 * before this routine is invoked. 7 *8 * INPUT: NONE9 *10 * OUTPUT: NONE11 6 * 12 7 * COPYRIGHT (c) 1989-1998. … … 38 33 char *rtems_progname; 39 34 40 /* Initialize whatever libc we are using41 * called from postdriver hook35 /* 36 * Use the shared implementations of the following routines 42 37 */ 43 44 void bsp_libc_init() 45 { 46 extern int end; 47 rtems_unsigned32 heap_start; 48 49 heap_start = (rtems_unsigned32) &end; 50 if (heap_start & (CPU_ALIGNMENT-1)) 51 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 52 53 RTEMS_Malloc_Initialize((void *) heap_start, 64 * 1024, 0); 54 55 /* 56 * Init the RTEMS libio facility to provide UNIX-like system 57 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 58 * Uses malloc() to get area for the iops, so must be after malloc init 59 */ 60 61 rtems_libio_init(); 62 63 /* 64 * Set up for the libc handling. 65 */ 66 67 if (BSP_Configuration.ticks_per_timeslice > 0) 68 libc_init(1); /* reentrant if possible */ 69 else 70 libc_init(0); /* non-reentrant */ 71 } 38 39 void bsp_postdriver_hook(void); 40 void bsp_libc_init( void *, unsigned32, int ); 72 41 73 42 /* … … 85 54 */ 86 55 87 void 88 bsp_pretasking_hook(void) 56 void bsp_pretasking_hook(void) 89 57 { 90 bsp_libc_init(); 58 extern int end; 59 rtems_unsigned32 heap_start; 60 61 heap_start = (rtems_unsigned32) &end; 62 if (heap_start & (CPU_ALIGNMENT-1)) 63 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 64 65 bsp_libc_init((void *) heap_start, 64 * 1024, 0); 66 91 67 92 68 #ifdef RTEMS_DEBUG … … 95 71 } 96 72 97 98 73 /* 99 * Use the shared bsp_postdriver_hook() implementation 74 * bsp_start 75 * 76 * This routine does the bulk of the system initialization. 100 77 */ 101 102 void bsp_postdriver_hook(void);103 78 104 79 void bsp_start( void ) -
c/src/lib/libbsp/i386/go32/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=bsp post bspstart sbrk setvec14 C_PIECES=bsplibc bsppost bspstart sbrk setvec 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/i386/go32/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bsp_start() 2 * 1 /* 3 2 * This routine starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. … … 6 5 * before this routine is invoked. 7 6 * 8 * INPUT: NONE9 *10 * OUTPUT: NONE11 *12 7 * COPYRIGHT (c) 1989-1998. 13 8 * On-Line Applications Research Corporation (OAR). … … 41 36 char *rtems_progname; 42 37 43 /* Initialize whatever libc we are using44 * called from postdriver hook38 /* 39 * Use the shared implementations of the following routines 45 40 */ 41 42 void bsp_postdriver_hook(void); 43 void bsp_libc_init( void *, unsigned32, int ); 46 44 47 void bsp_libc_init()48 {49 rtems_unsigned32 heap_start;50 51 #if 052 extern int end;53 heap_start = (rtems_unsigned32) &end;54 #else55 void * sbrk( int );56 heap_start = (rtems_unsigned32) sbrk( 64 * 1024 + CPU_ALIGNMENT );57 #endif58 if (heap_start & (CPU_ALIGNMENT-1))59 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);60 61 RTEMS_Malloc_Initialize((void *) heap_start, 64 * 1024, 0);62 63 /*64 * Init the RTEMS libio facility to provide UNIX-like system65 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc)66 * Uses malloc() to get area for the iops, so must be after malloc init67 */68 69 rtems_libio_init();70 71 /*72 * Set up for the libc handling.73 */74 75 if (BSP_Configuration.ticks_per_timeslice > 0)76 libc_init(1); /* reentrant if possible */77 else78 libc_init(0); /* non-reentrant */79 }80 81 45 /* 82 46 * Function: bsp_pretasking_hook … … 93 57 */ 94 58 95 void 96 bsp_pretasking_hook(void) 59 void bsp_pretasking_hook(void) 97 60 { 98 bsp_libc_init(); 61 rtems_unsigned32 heap_start; 62 63 #if 0 64 extern int end; 65 heap_start = (rtems_unsigned32) &end; 66 #else 67 void * sbrk( int ); 68 heap_start = (rtems_unsigned32) sbrk( 64 * 1024 + CPU_ALIGNMENT ); 69 #endif 70 if (heap_start & (CPU_ALIGNMENT-1)) 71 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 72 73 bsp_libc_init((void *) heap_start, 64 * 1024, 0); 74 99 75 100 76 #ifdef RTEMS_DEBUG … … 103 79 } 104 80 105 106 81 /* 107 * Use the shared bsp_postdriver_hook() implementation 82 * main/bsp_start 83 * 84 * This routine does the bulk of the system initialization. 108 85 */ 109 110 void bsp_postdriver_hook(void);111 86 112 87 /* This is the original command line passed from DOS */ -
c/src/lib/libbsp/i386/i386ex/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=bspclean bsp post bspstart main sbrk setvec14 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/i386/i386ex/startup/bspstart.c
rb3d3a34e rb6394ae 44 44 45 45 /* 46 * bsp_libc_init 47 * 48 * Initialize whatever libc we are using called from bsp_postdriver_hook. 46 * Use the shared implementations of the following routines 49 47 */ 50 51 48 52 void bsp_libc_init() 53 { 54 extern int heap_bottom; 55 rtems_unsigned32 heap_start; 56 rtems_unsigned32 heap_size; 57 58 heap_start = (rtems_unsigned32) &heap_bottom; 59 if (heap_start & (CPU_ALIGNMENT-1)) 60 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 61 62 heap_size = BSP_Configuration.work_space_start -(void *) heap_start ; 63 heap_size &= 0xfffffff0; /* keep it as a multiple of 16 bytes */ 64 65 heap_size &= 0xfffffff0; /* keep it as a multiple of 16 bytes */ 66 RTEMS_Malloc_Initialize((void *) heap_start, heap_size, 0); 67 68 /* 69 * Init the RTEMS libio facility to provide UNIX-like system 70 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 71 * Uses malloc() to get area for the iops, so must be after malloc init 72 */ 73 74 rtems_libio_init(); 75 76 /* 77 * Set up for the libc handling. 78 */ 79 80 if (BSP_Configuration.ticks_per_timeslice > 0) 81 libc_init(1); /* reentrant if possible */ 82 else 83 libc_init(0); /* non-reentrant */ 84 } 49 void bsp_postdriver_hook(void); 50 void bsp_libc_init( void *, unsigned32, int ); 85 51 86 52 /* … … 98 64 */ 99 65 100 void 101 bsp_pretasking_hook(void) 66 void bsp_pretasking_hook(void) 102 67 { 103 bsp_libc_init(); 104 68 extern int heap_bottom; 69 rtems_unsigned32 heap_start; 70 rtems_unsigned32 heap_size; 71 72 heap_start = (rtems_unsigned32) &heap_bottom; 73 if (heap_start & (CPU_ALIGNMENT-1)) 74 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 75 76 heap_size = BSP_Configuration.work_space_start -(void *) heap_start ; 77 heap_size &= 0xfffffff0; /* keep it as a multiple of 16 bytes */ 78 79 heap_size &= 0xfffffff0; /* keep it as a multiple of 16 bytes */ 80 bsp_libc_init((void *) heap_start, heap_size, 0); 81 105 82 #ifdef RTEMS_DEBUG 106 83 rtems_debug_enable( RTEMS_DEBUG_ALL_MASK ); … … 108 85 } 109 86 110 111 87 /* 112 * Use the shared bsp_postdriver_hook() implementation 88 * bsp_start 89 * 90 * This routine does the bulk of the system initialization. 113 91 */ 114 115 void bsp_postdriver_hook(void);116 92 117 93 void bsp_start( void ) -
c/src/lib/libbsp/i386/pc386/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=bspclean bsp post bspstart exit irq main sbrk14 C_PIECES=bspclean bsplibc bsppost bspstart exit irq main sbrk 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/i386/pc386/startup/bspstart.c
rb3d3a34e rb6394ae 67 67 +--------------------------------------------------------------------------*/ 68 68 extern void _exit(int); /* define in exit.c */ 69 70 /*-------------------------------------------------------------------------+ 71 | Function: bsp_libc_init 72 | Description: Initialize whatever libc we are using. Called from 73 | pretasking hook. 74 | Global Variables: rtemsFreeMemStart. 75 | Arguments: None. 76 | Returns: Nothing. 77 +--------------------------------------------------------------------------*/ 78 static void 79 bsp_libc_init(void) 80 { 81 if (rtemsFreeMemStart & (CPU_ALIGNMENT - 1)) /* not aligned => align it */ 82 rtemsFreeMemStart = (rtemsFreeMemStart+CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 83 84 RTEMS_Malloc_Initialize((void *)rtemsFreeMemStart, HEAP_SIZE << 10, 0); 85 rtemsFreeMemStart += HEAP_SIZE << 10; /* HEAP_SIZE is in KBytes */ 86 87 /* Init the RTEMS libio facility to provide UNIX-like system calls for use by 88 newlib (ie: provide __rtems_open, __rtems_close, etc). Uses malloc() 89 to get area for the iops, so must be after malloc initialization. */ 90 91 rtems_libio_init(); 92 93 /* Set up for the libc handling. */ 94 95 if (BSP_Configuration.ticks_per_timeslice > 0) 96 libc_init(1); /* reentrant if possible */ 97 else 98 libc_init(0); /* non-reentrant */ 99 } /* bsp_libc_init */ 100 69 void bsp_libc_init( void *, unsigned32, int ); 70 void bsp_postdriver_hook(void); 101 71 102 72 /*-------------------------------------------------------------------------+ … … 110 80 | Returns: Nothing. 111 81 +--------------------------------------------------------------------------*/ 112 void 113 bsp_pretasking_hook(void) 82 void bsp_pretasking_hook(void) 114 83 { 115 bsp_libc_init(); 84 if (rtemsFreeMemStart & (CPU_ALIGNMENT - 1)) /* not aligned => align it */ 85 rtemsFreeMemStart = (rtemsFreeMemStart+CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 86 87 bsp_libc_init((void *)rtemsFreeMemStart, HEAP_SIZE << 10, 0); 88 rtemsFreeMemStart += HEAP_SIZE << 10; /* HEAP_SIZE is in KBytes */ 89 116 90 117 91 #ifdef RTEMS_DEBUG … … 122 96 } /* bsp_pretasking_hook */ 123 97 124 125 /*126 * Use the shared bsp_postdriver_hook() implementation127 */128 129 void bsp_postdriver_hook(void);130 131 98 132 99 /*-------------------------------------------------------------------------+ -
c/src/lib/libbsp/i960/cvme961/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=bspclean bsp post bspstart main sbrk setvec14 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/i960/cvme961/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bsp_start() 2 * 1 /* 3 2 * This routine starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. 5 4 * The generic CPU dependent initialization has been performed 6 5 * before this routine is invoked. 7 *8 * INPUT: NONE9 *10 * OUTPUT: NONE11 6 * 12 7 * COPYRIGHT (c) 1989-1998. … … 41 36 char *rtems_progname; 42 37 43 /* Initialize whatever libc we are using44 * called from postdriver hook38 /* 39 * Use the shared implementations of the following routines 45 40 */ 46 47 void bsp_libc_init() 48 { 49 extern int end; 50 rtems_unsigned32 heap_start; 51 52 heap_start = (rtems_unsigned32) &end; 53 if (heap_start & (CPU_ALIGNMENT-1)) 54 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 55 56 RTEMS_Malloc_Initialize((void *) heap_start, 64 * 1024, 0); 57 58 /* 59 * Init the RTEMS libio facility to provide UNIX-like system 60 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 61 * Uses malloc() to get area for the iops, so must be after malloc init 62 */ 63 64 rtems_libio_init(); 65 66 /* 67 * Set up for the libc handling. 68 */ 69 70 if (BSP_Configuration.ticks_per_timeslice > 0) 71 libc_init(1); /* reentrant if possible */ 72 else 73 libc_init(0); /* non-reentrant */ 74 } 41 42 void bsp_postdriver_hook(void); 43 void bsp_libc_init( void *, unsigned32, int ); 75 44 76 45 /* … … 88 57 */ 89 58 90 void 91 bsp_pretasking_hook(void) 59 void bsp_pretasking_hook(void) 92 60 { 93 bsp_libc_init(); 61 extern int end; 62 rtems_unsigned32 heap_start; 63 64 heap_start = (rtems_unsigned32) &end; 65 if (heap_start & (CPU_ALIGNMENT-1)) 66 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 67 68 bsp_libc_init((void *) heap_start, 64 * 1024, 0); 94 69 95 70 #ifdef RTEMS_DEBUG … … 98 73 } 99 74 100 101 75 /* 102 * Use the shared bsp_postdriver_hook() implementation 76 * bsp_start 77 * 78 * This routine does the bulk of the system initialization. 103 79 */ 104 105 void bsp_postdriver_hook(void);106 80 107 81 void bsp_start( void ) -
c/src/lib/libbsp/m68k/dmv152/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=bspclean bsp post bspstart main sbrk setvec vmeintr14 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec vmeintr 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bsp_start() 2 * 1 /* 3 2 * This routine starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. 5 4 * The generic CPU dependent initialization has been performed 6 5 * before this routine is invoked. 7 *8 * INPUT: NONE9 *10 * OUTPUT: NONE11 6 * 12 7 * COPYRIGHT (c) 1989-1998. … … 40 35 char *rtems_progname; 41 36 42 /* Initialize whatever libc we are using43 * called from postdriver hook37 /* 38 * Use the shared implementations of the following routines 44 39 */ 45 46 void bsp_libc_init() 47 { 48 extern int end; 49 rtems_unsigned32 heap_start; 50 51 heap_start = (rtems_unsigned32) &end; 52 if (heap_start & (CPU_ALIGNMENT-1)) 53 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 54 55 RTEMS_Malloc_Initialize((void *) heap_start, 64 * 1024, 0); 56 57 /* 58 * Init the RTEMS libio facility to provide UNIX-like system 59 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 60 * Uses malloc() to get area for the iops, so must be after malloc init 61 */ 62 63 rtems_libio_init(); 64 65 /* 66 * Set up for the libc handling. 67 */ 68 69 if (BSP_Configuration.ticks_per_timeslice > 0) 70 libc_init(1); /* reentrant if possible */ 71 else 72 libc_init(0); /* non-reentrant */ 73 } 40 41 void bsp_postdriver_hook(void); 42 void bsp_libc_init( void *, unsigned32, int ); 74 43 75 44 /* … … 87 56 */ 88 57 89 void 90 bsp_pretasking_hook(void) 58 void bsp_pretasking_hook(void) 91 59 { 92 bsp_libc_init(); 60 extern int end; 61 rtems_unsigned32 heap_start; 62 63 heap_start = (rtems_unsigned32) &end; 64 if (heap_start & (CPU_ALIGNMENT-1)) 65 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 66 67 bsp_libc_init((void *) heap_start, 64 * 1024, 0); 93 68 94 69 #ifdef RTEMS_DEBUG … … 97 72 } 98 73 99 100 74 /* 101 * Use the shared bsp_postdriver_hook() implementation 75 * bsp_start 76 * 77 * This routine does the bulk of the system initialization. 102 78 */ 103 104 void bsp_postdriver_hook(void);105 79 106 80 void bsp_start( void ) -
c/src/lib/libbsp/m68k/efi332/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=bsp post bspstart bspclean main sbrk setvec14 C_PIECES=bsplibc bsppost bspstart bspclean main sbrk setvec 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/m68k/efi332/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bsp_start() 2 * 1 /* 3 2 * This routine starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. 5 4 * The generic CPU dependent initialization has been performed 6 5 * before this routine is invoked. 7 *8 * INPUT: NONE9 *10 * OUTPUT: NONE11 6 * 12 7 * COPYRIGHT (c) 1989-1998. … … 39 34 char *rtems_progname; 40 35 41 /* Initialize whatever libc we are using42 * called from postdriver hook36 /* 37 * Use the shared implementations of the following routines 43 38 */ 39 40 void bsp_postdriver_hook(void); 41 void bsp_libc_init( void *, unsigned32, int ); 44 42 45 void bsp_libc_init() 43 /* 44 * Function: bsp_pretasking_hook 45 * Created: 95/03/10 46 * 47 * Description: 48 * BSP pretasking hook. Called just before drivers are initialized. 49 * Used to setup libc and install any BSP extensions. 50 * 51 * NOTES: 52 * Must not use libc (to do io) from here, since drivers are 53 * not yet initialized. 54 * 55 */ 56 57 void bsp_pretasking_hook(void) 46 58 { 47 59 /* extern int end; */ … … 59 71 } 60 72 61 RTEMS_Malloc_Initialize((void *) heap_start, 62 (RAM_END - heap_start), 0); 63 64 /* 65 * Init the RTEMS libio facility to provide UNIX-like system 66 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 67 * Uses malloc() to get area for the iops, so must be after malloc init 68 */ 69 70 rtems_libio_init(); 71 72 /* 73 * Set up for the libc handling. 74 */ 75 76 if (BSP_Configuration.ticks_per_timeslice > 0) 77 libc_init(1); /* reentrant if possible */ 78 else 79 libc_init(0); /* non-reentrant */ 80 } 81 82 /* 83 * Function: bsp_pretasking_hook 84 * Created: 95/03/10 85 * 86 * Description: 87 * BSP pretasking hook. Called just before drivers are initialized. 88 * Used to setup libc and install any BSP extensions. 89 * 90 * NOTES: 91 * Must not use libc (to do io) from here, since drivers are 92 * not yet initialized. 93 * 94 */ 95 96 void 97 bsp_pretasking_hook(void) 98 { 99 bsp_libc_init(); 73 bsp_libc_init((void *) heap_start, (RAM_END - heap_start), 0); 100 74 101 75 #ifdef RTEMS_DEBUG … … 104 78 } 105 79 106 107 80 /* 108 * Use the shared bsp_postdriver_hook() implementation 81 * bsp_start 82 * 83 * This routine does the bulk of the system initialization. 109 84 */ 110 111 void bsp_postdriver_hook(void);112 85 113 86 void bsp_start( void ) -
c/src/lib/libbsp/m68k/efi68k/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=bsp post bspstart bspclean efi68k_tcp efi68k_wd main sbrk setvec14 C_PIECES=bsplibc bsppost bspstart bspclean efi68k_tcp efi68k_wd main sbrk setvec 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/m68k/efi68k/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bsp_start() 2 * 1 /* 3 2 * This routine starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. 5 4 * The generic CPU dependent initialization has been performed 6 5 * before this routine is invoked. 7 *8 * INPUT: NONE9 *10 * OUTPUT: NONE11 6 * 12 7 * COPYRIGHT (c) 1989-1998. … … 44 39 extern void breakpoint(void); 45 40 46 /* Initialize whatever libc we are using47 * called from postdriver hook41 /* 42 * Use the shared implementations of the following routines 48 43 */ 44 45 void bsp_postdriver_hook(void); 46 void bsp_libc_init( void *, unsigned32, int ); 49 47 50 void bsp_libc_init() 48 /* 49 * Function: bsp_pretasking_hook 50 * Created: 95/03/10 51 * 52 * Description: 53 * BSP pretasking hook. Called just before drivers are initialized. 54 * Used to setup libc and install any BSP extensions. 55 * 56 * NOTES: 57 * Must not use libc (to do io) from here, since drivers are 58 * not yet initialized. 59 * 60 */ 61 62 void bsp_pretasking_hook(void) 51 63 { 52 64 /* extern int end; */ … … 64 76 } 65 77 66 RTEMS_Malloc_Initialize((void *) heap_start, 67 (RAM_END - heap_start), 0); 68 69 /* 70 * Init the RTEMS libio facility to provide UNIX-like system 71 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 72 * Uses malloc() to get area for the iops, so must be after malloc init 73 */ 74 75 rtems_libio_init(); 76 77 /* 78 * Set up for the libc handling. 79 */ 80 81 if (BSP_Configuration.ticks_per_timeslice > 0) 82 libc_init(1); /* reentrant if possible */ 83 else 84 libc_init(0); /* non-reentrant */ 85 } 86 87 /* 88 * Function: bsp_pretasking_hook 89 * Created: 95/03/10 90 * 91 * Description: 92 * BSP pretasking hook. Called just before drivers are initialized. 93 * Used to setup libc and install any BSP extensions. 94 * 95 * NOTES: 96 * Must not use libc (to do io) from here, since drivers are 97 * not yet initialized. 98 * 99 */ 100 101 void 102 bsp_pretasking_hook(void) 103 { 104 bsp_libc_init(); 78 bsp_libc_init((void *) heap_start, (RAM_END - heap_start), 0); 105 79 106 80 #ifdef RTEMS_DEBUG … … 109 83 } 110 84 111 112 85 /* 113 * Use the shared bsp_postdriver_hook() implementation 86 * bsp_start 87 * 88 * This routine does the bulk of the system initialization. 114 89 */ 115 116 void bsp_postdriver_hook(void);117 118 90 119 91 void bsp_start( void ) -
c/src/lib/libbsp/m68k/gen68302/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=bspclean bsp post bspstart main sbrk setvec14 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/m68k/gen68302/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bsp_start() 2 * 1 /* 3 2 * This routine starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. 5 4 * The generic CPU dependent initialization has been performed 6 5 * before this routine is invoked. 7 *8 * INPUT: NONE9 *10 * OUTPUT: NONE11 6 * 12 7 * COPYRIGHT (c) 1989-1998. … … 40 35 char *rtems_progname; 41 36 42 /* Initialize whatever libc we are using43 * called from postdriver hook37 /* 38 * Use the shared implementations of the following routines 44 39 */ 45 46 void bsp_libc_init() 47 { 48 extern int end; 49 rtems_unsigned32 heap_start; 50 51 heap_start = (rtems_unsigned32) &end; 52 if (heap_start & (CPU_ALIGNMENT-1)) 53 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 54 55 /* 56 * The last parameter to RTEMS_Malloc_Initialize is the "chunk" 57 * size which a multiple of will be requested on each sbrk() 58 * call by malloc(). A value of 0 indicates that sbrk() should 59 * not be called to extend the heap. 60 */ 61 62 RTEMS_Malloc_Initialize((void *) heap_start, 64 * 1024, 0); 63 64 /* 65 * Init the RTEMS libio facility to provide UNIX-like system 66 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 67 * Uses malloc() to get area for the iops, so must be after malloc init 68 */ 69 70 rtems_libio_init(); 71 72 /* 73 * Set up for the libc handling. 74 */ 75 76 if (BSP_Configuration.ticks_per_timeslice > 0) 77 libc_init(1); /* reentrant if possible */ 78 else 79 libc_init(0); /* non-reentrant */ 80 } 40 41 void bsp_postdriver_hook(void); 42 void bsp_libc_init( void *, unsigned32, int ); 81 43 82 44 /* … … 94 56 */ 95 57 96 void 97 bsp_pretasking_hook(void) 58 void bsp_pretasking_hook(void) 98 59 { 99 bsp_libc_init(); 60 extern int end; 61 rtems_unsigned32 heap_start; 62 63 heap_start = (rtems_unsigned32) &end; 64 if (heap_start & (CPU_ALIGNMENT-1)) 65 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 66 67 bsp_libc_init((void *) heap_start, 64 * 1024, 0); 68 100 69 101 70 #ifdef RTEMS_DEBUG … … 103 72 #endif 104 73 } 105 106 74 107 75 /* 108 * Use the shared bsp_postdriver_hook() implementation 76 * bsp_start 77 * 78 * This routine does the bulk of the system initialization. 109 79 */ 110 111 void bsp_postdriver_hook(void);112 113 80 114 81 void bsp_start( void ) -
c/src/lib/libbsp/m68k/gen68360/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=alloc360 bspclean bsp post bspstart init68360 main sbrk setvec14 C_PIECES=alloc360 bspclean bsplibc bsppost bspstart init68360 main sbrk setvec 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/m68k/gen68360/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bsp_start() 2 * 1 /* 3 2 * This routine starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. 5 4 * The generic CPU dependent initialization has been performed 6 5 * before this routine is invoked. 7 *8 * INPUT: NONE9 *10 * OUTPUT: NONE11 6 * 12 7 * COPYRIGHT (c) 1989-1998. … … 40 35 char *rtems_progname; 41 36 42 /* Initialize whatever libc we are using43 * called from postdriver hook37 /* 38 * Use the shared implementations of the following routines 44 39 */ 45 46 void bsp_libc_init() 47 { 48 extern void *_HeapStart; 49 extern rtems_unsigned32 _HeapSize; 50 51 /* 52 * The last parameter to RTEMS_Malloc_Initialize is the "chunk" 53 * size which a multiple of will be requested on each sbrk() 54 * call by malloc(). A value of 0 indicates that sbrk() should 55 * not be called to extend the heap. 56 */ 57 58 RTEMS_Malloc_Initialize(&_HeapStart, _HeapSize, 0); 59 60 /* 61 * Init the RTEMS libio facility to provide UNIX-like system 62 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 63 * Uses malloc() to get area for the iops, so must be after malloc init 64 */ 65 66 rtems_libio_init(); 67 68 /* 69 * Set up for the libc handling. 70 */ 71 72 if (BSP_Configuration.ticks_per_timeslice > 0) 73 libc_init(1); /* reentrant if possible */ 74 else 75 libc_init(0); /* non-reentrant */ 76 } 40 41 void bsp_postdriver_hook(void); 42 void bsp_libc_init( void *, unsigned32, int ); 77 43 78 44 /* … … 90 56 */ 91 57 92 void 93 bsp_pretasking_hook(void) 58 void bsp_pretasking_hook(void) 94 59 { 95 bsp_libc_init(); 60 extern void *_HeapStart; 61 extern rtems_unsigned32 _HeapSize; 62 63 bsp_libc_init(&_HeapStart, _HeapSize, 0); 96 64 97 65 #ifdef RTEMS_DEBUG … … 100 68 } 101 69 102 103 70 /* 104 * Use the shared bsp_postdriver_hook() implementation 71 * bsp_start 72 * 73 * This routine does the bulk of the system initialization. 105 74 */ 106 107 void bsp_postdriver_hook(void);108 75 109 76 void bsp_start( void ) -
c/src/lib/libbsp/m68k/idp/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=bspclean bsp post bspstart main sbrk setvec14 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/m68k/idp/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bsp_start() 2 * 1 /* 3 2 * This routine starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. … … 6 5 * before this routine is invoked. 7 6 * 8 * INPUT: NONE9 *10 * OUTPUT: NONE11 *12 7 * COPYRIGHT (c) 1989-1998. 13 8 * On-Line Applications Research Corporation (OAR). … … 47 42 char *rtems_progname; 48 43 49 /* Initialize whatever libc we are using50 * called from postdriver hook44 /* 45 * Use the shared implementations of the following routines 51 46 */ 52 47 53 void bsp_libc_init() 54 { 55 extern int end; 56 rtems_unsigned32 heap_start; 57 58 heap_start = (rtems_unsigned32) &end; 59 if (heap_start & (CPU_ALIGNMENT-1)) 60 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 61 62 /* Create 64 KByte memory region for RTEMS executive */ 63 RTEMS_Malloc_Initialize((void *) heap_start, 64 * 1024, 0); 64 65 /* 66 * Init the RTEMS libio facility to provide UNIX-like system 67 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 68 * Uses malloc() to get area for the iops, so must be after malloc init 69 */ 70 71 rtems_libio_init(); 72 73 /* 74 * Set up for the libc handling. 75 */ 76 77 if (BSP_Configuration.ticks_per_timeslice > 0) 78 libc_init(1); /* reentrant if possible */ 79 else 80 libc_init(0); /* non-reentrant */ 81 } 48 void bsp_postdriver_hook(void); 49 void bsp_libc_init( void *, unsigned32, int ); 82 50 83 51 /* … … 95 63 */ 96 64 97 void 98 bsp_pretasking_hook(void) 65 void bsp_pretasking_hook(void) 99 66 { 100 bsp_libc_init(); 67 extern int end; 68 rtems_unsigned32 heap_start; 69 70 heap_start = (rtems_unsigned32) &end; 71 if (heap_start & (CPU_ALIGNMENT-1)) 72 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 73 74 /* Create 64 KByte memory region for RTEMS executive */ 75 bsp_libc_init((void *) heap_start, 64 * 1024, 0); 101 76 102 77 #ifdef RTEMS_DEBUG … … 105 80 } 106 81 107 108 82 /* 109 * Use the shared bsp_postdriver_hook() implementation 83 * bsp_start 84 * 85 * This routine does the bulk of the system initialization. 110 86 */ 111 112 void bsp_postdriver_hook(void);113 87 114 88 void bsp_start( void ) -
c/src/lib/libbsp/m68k/mvme136/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=bspclean bsp post bspstart main sbrk setvec14 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/m68k/mvme136/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bsp_start() 2 * 1 /* 3 2 * This routine starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. 5 4 * The generic CPU dependent initialization has been performed 6 5 * before this routine is invoked. 7 *8 * INPUT: NONE9 *10 * OUTPUT: NONE11 6 * 12 7 * COPYRIGHT (c) 1989-1998. … … 41 36 char *rtems_progname; 42 37 43 /* Initialize whatever libc we are using44 * called from postdriver hook38 /* 39 * Use the shared implementations of the following routines 45 40 */ 46 47 void bsp_libc_init() 48 { 49 extern int end; 50 rtems_unsigned32 heap_start; 51 52 heap_start = (rtems_unsigned32) &end; 53 if (heap_start & (CPU_ALIGNMENT-1)) 54 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 55 56 RTEMS_Malloc_Initialize((void *) heap_start, 64 * 1024, 0); 57 58 /* 59 * Init the RTEMS libio facility to provide UNIX-like system 60 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 61 * Uses malloc() to get area for the iops, so must be after malloc init 62 */ 63 64 rtems_libio_init(); 65 66 /* 67 * Set up for the libc handling. 68 */ 69 70 if (BSP_Configuration.ticks_per_timeslice > 0) 71 libc_init(1); /* reentrant if possible */ 72 else 73 libc_init(0); /* non-reentrant */ 74 } 41 42 void bsp_postdriver_hook(void); 43 void bsp_libc_init( void *, unsigned32, int ); 75 44 76 45 /* … … 88 57 */ 89 58 90 void 91 bsp_pretasking_hook(void) 59 void bsp_pretasking_hook(void) 92 60 { 93 bsp_libc_init(); 61 extern int end; 62 rtems_unsigned32 heap_start; 63 64 heap_start = (rtems_unsigned32) &end; 65 if (heap_start & (CPU_ALIGNMENT-1)) 66 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 67 68 bsp_libc_init((void *) heap_start, 64 * 1024, 0); 69 94 70 95 71 #ifdef RTEMS_DEBUG … … 97 73 #endif 98 74 } 99 75 100 76 /* 101 * Use the shared bsp_postdriver_hook() implementation 77 * bsp_start 78 * 79 * This routine does the bulk of the system initialization. 102 80 */ 103 104 void bsp_postdriver_hook(void);105 81 106 82 void bsp_start( void ) -
c/src/lib/libbsp/m68k/mvme147/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=bspclean bsp post bspstart main sbrk setvec14 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/m68k/mvme147/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bsp_start() 2 * 1 /* 3 2 * This routine starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. 5 4 * The generic CPU dependent initialization has been performed 6 5 * before this routine is invoked. 7 *8 * INPUT: NONE9 *10 * OUTPUT: NONE11 6 * 12 7 * COPYRIGHT (c) 1989-1998. … … 44 39 char *rtems_progname; 45 40 46 /* Initialize whatever libc we are using47 * called from postdriver hook41 /* 42 * Use the shared implementations of the following routines 48 43 */ 49 50 void bsp_libc_init() 51 { 52 extern int end; 53 rtems_unsigned32 heap_start; 54 55 heap_start = (rtems_unsigned32) &end; 56 if (heap_start & (CPU_ALIGNMENT-1)) 57 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 58 59 RTEMS_Malloc_Initialize((void *) heap_start, 64 * 1024, 0); 60 61 /* 62 * Init the RTEMS libio facility to provide UNIX-like system 63 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 64 * Uses malloc() to get area for the iops, so must be after malloc init 65 */ 66 67 rtems_libio_init(); 68 69 /* 70 * Set up for the libc handling. 71 */ 72 73 if (BSP_Configuration.ticks_per_timeslice > 0) 74 libc_init(1); /* reentrant if possible */ 75 else 76 libc_init(0); /* non-reentrant */ 77 } 44 45 void bsp_postdriver_hook(void); 46 void bsp_libc_init( void *, unsigned32, int ); 78 47 79 48 /* … … 91 60 */ 92 61 93 void 94 bsp_pretasking_hook(void) 62 void bsp_pretasking_hook(void) 95 63 { 96 bsp_libc_init(); 64 extern int end; 65 rtems_unsigned32 heap_start; 66 67 heap_start = (rtems_unsigned32) &end; 68 if (heap_start & (CPU_ALIGNMENT-1)) 69 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 70 71 bsp_libc_init((void *) heap_start, 64 * 1024, 0); 72 97 73 98 74 #ifdef RTEMS_DEBUG … … 101 77 } 102 78 103 104 79 /* 105 * Use the shared bsp_postdriver_hook() implementation 80 * bsp_start 81 * 82 * This routine does the bulk of the system initialization. 106 83 */ 107 108 void bsp_postdriver_hook(void);109 110 84 111 85 void bsp_start( void ) -
c/src/lib/libbsp/m68k/mvme147s/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=bspclean bsp post bspstart main sbrk setvec14 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/m68k/mvme147s/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bsp_start() 2 * 1 /* 3 2 * This routine starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. … … 6 5 * before this routine is invoked. 7 6 * 8 * INPUT: NONE9 *10 * OUTPUT: NONE11 *12 7 * COPYRIGHT (c) 1989-1998. 13 8 * On-Line Applications Research Corporation (OAR). … … 44 39 char *rtems_progname; 45 40 46 /* Initialize whatever libc we are using 47 * called from postdriver hook 48 */ 49 50 void bsp_libc_init() 41 /* 42 * Use the shared implementations of the following routines 43 */ 44 45 void bsp_postdriver_hook(void); 46 void bsp_libc_init( void *, unsigned32, int ); 47 48 /* 49 * Function: bsp_pretasking_hook 50 * Created: 95/03/10 51 * 52 * Description: 53 * BSP pretasking hook. Called just before drivers are initialized. 54 * Used to setup libc and install any BSP extensions. 55 * 56 * NOTES: 57 * Must not use libc (to do io) from here, since drivers are 58 * not yet initialized. 59 * 60 */ 61 62 void bsp_pretasking_hook(void) 51 63 { 52 64 extern int end; … … 57 69 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 58 70 59 RTEMS_Malloc_Initialize((void *) heap_start, 64 * 1024, 0); 60 61 /* 62 * Init the RTEMS libio facility to provide UNIX-like system 63 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 64 * Uses malloc() to get area for the iops, so must be after malloc init 65 */ 66 67 rtems_libio_init(); 68 69 /* 70 * Set up for the libc handling. 71 */ 72 73 if (BSP_Configuration.ticks_per_timeslice > 0) 74 libc_init(1); /* reentrant if possible */ 75 else 76 libc_init(0); /* non-reentrant */ 77 } 78 79 /* 80 * Function: bsp_pretasking_hook 81 * Created: 95/03/10 82 * 83 * Description: 84 * BSP pretasking hook. Called just before drivers are initialized. 85 * Used to setup libc and install any BSP extensions. 86 * 87 * NOTES: 88 * Must not use libc (to do io) from here, since drivers are 89 * not yet initialized. 90 * 91 */ 92 93 void 94 bsp_pretasking_hook(void) 95 { 96 bsp_libc_init(); 71 bsp_libc_init((void *) heap_start, 64 * 1024, 0); 97 72 98 73 #ifdef RTEMS_DEBUG … … 101 76 } 102 77 103 104 /* 105 * Use the shared bsp_postdriver_hook() implementation 106 */ 107 108 void bsp_postdriver_hook(void); 109 78 /* 79 * bsp_start 80 * 81 * This routine does the bulk of the system initialization. 82 */ 110 83 111 84 void bsp_start( void ) -
c/src/lib/libbsp/m68k/mvme162/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=bspclean bsp post bspstart main page_table sbrk setvec14 C_PIECES=bspclean bsplibc bsppost bspstart main page_table sbrk setvec 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/m68k/mvme162/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bsp_start() 2 * 1 /* 3 2 * This routine starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. 5 4 * The generic CPU dependent initialization has been performed 6 5 * before this routine is invoked. 7 *8 * INPUT: NONE9 *10 * OUTPUT: NONE11 6 * 12 7 * COPYRIGHT (c) 1989-1998. … … 48 43 char *rtems_progname; 49 44 50 /* Initialize whatever libc we are using51 * called from postdriver hook45 /* 46 * Use the shared implementations of the following routines 52 47 */ 53 54 void bsp_libc_init() 55 { 56 extern int end; 57 rtems_unsigned32 heap_start; 58 59 heap_start = (rtems_unsigned32) &end; 60 if (heap_start & (CPU_ALIGNMENT-1)) 61 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 62 63 RTEMS_Malloc_Initialize((void *) heap_start, 64 * 1024, 0); 64 65 /* 66 * Init the RTEMS libio facility to provide UNIX-like system 67 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 68 * Uses malloc() to get area for the iops, so must be after malloc init 69 */ 70 71 rtems_libio_init(); 72 73 /* 74 * Set up for the libc handling. 75 */ 76 77 if (BSP_Configuration.ticks_per_timeslice > 0) 78 libc_init(1); /* reentrant if possible */ 79 else 80 libc_init(0); /* non-reentrant */ 81 } 48 49 void bsp_postdriver_hook(void); 50 void bsp_libc_init( void *, unsigned32, int ); 82 51 83 52 /* … … 95 64 */ 96 65 97 void 98 bsp_pretasking_hook(void) 66 void bsp_pretasking_hook(void) 99 67 { 100 bsp_libc_init(); 68 extern int end; 69 rtems_unsigned32 heap_start; 70 71 heap_start = (rtems_unsigned32) &end; 72 if (heap_start & (CPU_ALIGNMENT-1)) 73 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 74 75 bsp_libc_init((void *) heap_start, 64 * 1024, 0); 101 76 102 77 #ifdef RTEMS_DEBUG … … 104 79 #endif 105 80 } 106 107 81 108 82 /* 109 * Use the shared bsp_postdriver_hook() implementation 83 * bsp_start 84 * 85 * This routine does the bulk of the system initialization. 110 86 */ 111 112 void bsp_postdriver_hook(void);113 114 87 115 88 void bsp_start( void ) -
c/src/lib/libbsp/m68k/ods68302/startup/Makefile.in
rb3d3a34e rb6394ae 13 13 # C source names, if any, go here -- minus the .c 14 14 C_PIECES=crc debugport gdb-hooks main m68302scc m68k-stub memcheck trace \ 15 bsp post bspstart bspclean sbrk setvec15 bsplibc bsppost bspstart bspclean sbrk setvec 16 16 C_FILES=$(C_PIECES:%=%.c) 17 17 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/m68k/ods68302/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bsp_start() 2 * 1 /* 3 2 * This routine starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. 5 4 * The generic CPU dependent initialization has been performed 6 5 * before this routine is invoked. 7 *8 * INPUT: NONE9 *10 * OUTPUT: NONE11 6 * 12 7 * COPYRIGHT (c) 1989-1998. … … 41 36 char *rtems_progname; 42 37 43 /* Initialize whatever libc we are using44 * called from postdriver hook38 /* 39 * Use the shared implementations of the following routines 45 40 */ 46 47 void bsp_libc_init() 48 { 49 extern int end; 50 rtems_unsigned32 heap_start; 51 52 heap_start = (rtems_unsigned32) &end; 53 if (heap_start & (CPU_ALIGNMENT-1)) 54 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 55 56 /* 57 * The last parameter to RTEMS_Malloc_Initialize is the "chunk" 58 * size which a multiple of will be requested on each sbrk() 59 * call by malloc(). A value of 0 indicates that sbrk() should 60 * not be called to extend the heap. 61 */ 62 63 RTEMS_Malloc_Initialize((void *) heap_start, 64 * 1024, 0); 64 65 /* 66 * Init the RTEMS libio facility to provide UNIX-like system 67 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 68 * Uses malloc() to get area for the iops, so must be after malloc init 69 */ 70 71 rtems_libio_init(); 72 73 /* 74 * Set up for the libc handling. 75 */ 76 77 if (BSP_Configuration.ticks_per_timeslice > 0) 78 libc_init(1); /* reentrant if possible */ 79 else 80 libc_init(0); /* non-reentrant */ 81 } 41 42 void bsp_postdriver_hook(void); 43 void bsp_libc_init( void *, unsigned32, int ); 82 44 83 45 /* … … 95 57 */ 96 58 97 void 98 bsp_pretasking_hook(void) 59 void bsp_pretasking_hook(void) 99 60 { 100 bsp_libc_init(); 61 extern int end; 62 rtems_unsigned32 heap_start; 63 64 heap_start = (rtems_unsigned32) &end; 65 if (heap_start & (CPU_ALIGNMENT-1)) 66 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 67 68 bsp_libc_init((void *) heap_start, 64 * 1024, 0); 101 69 102 70 #ifdef RTEMS_DEBUG … … 105 73 } 106 74 107 108 75 /* 109 * Use the shared bsp_postdriver_hook() implementation 76 * bsp_start 77 * 78 * This routine does the bulk of the system initialization. 110 79 */ 111 112 void bsp_postdriver_hook(void);113 80 114 81 void bsp_start( void ) -
c/src/lib/libbsp/mips/p4000/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bsp_start() 2 * 1 /* 3 2 * This routine starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. 5 4 * The generic CPU dependent initialization has been performed 6 5 * before this routine is invoked. 7 *8 * INPUT: NONE9 *10 * OUTPUT: NONE11 6 * 12 7 * COPYRIGHT (c) 1989-1998. … … 49 44 char *rtems_progname; 50 45 51 /* Initialize whatever libc we are using52 * called from postdriver hook46 /* 47 * Use the shared implementations of the following routines 53 48 */ 54 55 #define LIBC_HEAP_SIZE (64 * 1024) 56 57 void bsp_libc_init() 58 { 59 extern int end; 60 rtems_unsigned32 heap_start; 61 62 heap_start = (rtems_unsigned32) &end; 63 if (heap_start & (CPU_ALIGNMENT-1)) 64 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 65 66 /* 67 * The last parameter to RTEMS_Malloc_Initialize is the "chunk" 68 * size which a multiple of will be requested on each sbrk() 69 * call by malloc(). A value of 0 indicates that sbrk() should 70 * not be called to extend the heap. 71 */ 72 73 RTEMS_Malloc_Initialize((void *) heap_start, LIBC_HEAP_SIZE, 0); 74 75 /* 76 * Init the RTEMS libio facility to provide UNIX-like system 77 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 78 * Uses malloc() to get area for the iops, so must be after malloc init 79 */ 80 81 rtems_libio_init(); 82 83 /* 84 * Set up for the libc handling. 85 */ 86 87 if (BSP_Configuration.ticks_per_timeslice > 0) 88 libc_init(1); /* reentrant if possible */ 89 else 90 libc_init(0); /* non-reentrant */ 91 } 49 50 void bsp_postdriver_hook(void); 51 void bsp_libc_init( void *, unsigned32, int ); 92 52 93 53 /* … … 105 65 */ 106 66 107 void 108 bsp_pretasking_hook(void) 67 #define LIBC_HEAP_SIZE (64 * 1024) 68 69 void bsp_pretasking_hook(void) 109 70 { 110 bsp_libc_init(); 111 71 extern int end; 72 rtems_unsigned32 heap_start; 73 74 heap_start = (rtems_unsigned32) &end; 75 if (heap_start & (CPU_ALIGNMENT-1)) 76 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 77 78 bsp_libc_init((void *) heap_start, LIBC_HEAP_SIZE, 0); 79 112 80 #ifdef RTEMS_DEBUG 113 81 rtems_debug_enable( RTEMS_DEBUG_ALL_MASK ); … … 115 83 } 116 84 85 extern int end; /* defined by linker */ 86 117 87 /* 118 * Use the shared bsp_postdriver_hook() implementation 88 * bsp_start 89 * 90 * This routine does the bulk of the system initialization. 119 91 */ 120 121 void bsp_postdriver_hook(void);122 123 extern int end; /* defined by linker */124 92 125 93 void bsp_start( void ) -
c/src/lib/libbsp/mips64orion/p4000/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=bspclean bsp post bspstart main sbrk setvec inittlb14 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec inittlb 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/mips64orion/p4000/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bsp_start() 2 * 1 /* 3 2 * This routine starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. 5 4 * The generic CPU dependent initialization has been performed 6 5 * before this routine is invoked. 7 *8 * INPUT: NONE9 *10 * OUTPUT: NONE11 6 * 12 7 * COPYRIGHT (c) 1989-1998. … … 49 44 char *rtems_progname; 50 45 51 /* Initialize whatever libc we are using52 * called from postdriver hook46 /* 47 * Use the shared implementations of the following routines 53 48 */ 54 55 #define LIBC_HEAP_SIZE (64 * 1024) 56 57 void bsp_libc_init() 58 { 59 extern int end; 60 rtems_unsigned32 heap_start; 61 62 heap_start = (rtems_unsigned32) &end; 63 if (heap_start & (CPU_ALIGNMENT-1)) 64 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 65 66 /* 67 * The last parameter to RTEMS_Malloc_Initialize is the "chunk" 68 * size which a multiple of will be requested on each sbrk() 69 * call by malloc(). A value of 0 indicates that sbrk() should 70 * not be called to extend the heap. 71 */ 72 73 RTEMS_Malloc_Initialize((void *) heap_start, LIBC_HEAP_SIZE, 0); 74 75 /* 76 * Init the RTEMS libio facility to provide UNIX-like system 77 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 78 * Uses malloc() to get area for the iops, so must be after malloc init 79 */ 80 81 rtems_libio_init(); 82 83 /* 84 * Set up for the libc handling. 85 */ 86 87 if (BSP_Configuration.ticks_per_timeslice > 0) 88 libc_init(1); /* reentrant if possible */ 89 else 90 libc_init(0); /* non-reentrant */ 91 } 49 50 void bsp_postdriver_hook(void); 51 void bsp_libc_init( void *, unsigned32, int ); 92 52 93 53 /* … … 105 65 */ 106 66 107 void 108 bsp_pretasking_hook(void) 67 #define LIBC_HEAP_SIZE (64 * 1024) 68 69 void bsp_pretasking_hook(void) 109 70 { 110 bsp_libc_init(); 111 71 extern int end; 72 rtems_unsigned32 heap_start; 73 74 heap_start = (rtems_unsigned32) &end; 75 if (heap_start & (CPU_ALIGNMENT-1)) 76 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 77 78 bsp_libc_init((void *) heap_start, LIBC_HEAP_SIZE, 0); 79 112 80 #ifdef RTEMS_DEBUG 113 81 rtems_debug_enable( RTEMS_DEBUG_ALL_MASK ); … … 115 83 } 116 84 85 extern int end; /* defined by linker */ 86 117 87 /* 118 * Use the shared bsp_postdriver_hook() implementation 88 * bsp_start 89 * 90 * This routine does the bulk of the system initialization. 119 91 */ 120 121 void bsp_postdriver_hook(void);122 123 extern int end; /* defined by linker */124 92 125 93 void bsp_start( void ) -
c/src/lib/libbsp/no_cpu/no_bsp/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=bspclean bsp post bspstart main sbrk setvec14 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/no_cpu/no_bsp/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bsp_start() 2 * 1 /* 3 2 * This routine starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. 5 4 * The generic CPU dependent initialization has been performed 6 5 * before this routine is invoked. 7 *8 * INPUT: NONE9 *10 * OUTPUT: NONE11 6 * 12 7 * COPYRIGHT (c) 1989-1998. … … 41 36 char *rtems_progname; 42 37 43 /* Initialize whatever libc we are using44 * called from postdriver hook38 /* 39 * Use the shared implementations of the following routines 45 40 */ 46 47 void bsp_libc_init() 48 { 49 extern int end; 50 rtems_unsigned32 heap_start; 51 52 heap_start = (rtems_unsigned32) &end; 53 if (heap_start & (CPU_ALIGNMENT-1)) 54 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 55 56 /* 57 * The last parameter to RTEMS_Malloc_Initialize is the "chunk" 58 * size which a multiple of will be requested on each sbrk() 59 * call by malloc(). A value of 0 indicates that sbrk() should 60 * not be called to extend the heap. 61 */ 62 63 RTEMS_Malloc_Initialize((void *) heap_start, 64 * 1024, 0); 64 65 /* 66 * Init the RTEMS libio facility to provide UNIX-like system 67 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 68 * Uses malloc() to get area for the iops, so must be after malloc init 69 */ 70 71 rtems_libio_init(); 72 73 /* 74 * Set up for the libc handling. 75 */ 76 77 if (BSP_Configuration.ticks_per_timeslice > 0) 78 libc_init(1); /* reentrant if possible */ 79 else 80 libc_init(0); /* non-reentrant */ 81 } 41 42 void bsp_postdriver_hook(void); 43 void bsp_libc_init( void *, unsigned32, int ); 82 44 83 45 /* … … 95 57 */ 96 58 97 void 98 bsp_pretasking_hook(void) 59 void bsp_pretasking_hook(void) 99 60 { 100 bsp_libc_init(); 101 61 extern int end; 62 rtems_unsigned32 heap_start; 63 64 heap_start = (rtems_unsigned32) &end; 65 if (heap_start & (CPU_ALIGNMENT-1)) 66 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 67 68 bsp_libc_init((void *) heap_start, 64 * 1024, 0); 69 102 70 #ifdef RTEMS_DEBUG 103 71 rtems_debug_enable( RTEMS_DEBUG_ALL_MASK ); … … 105 73 } 106 74 107 108 75 /* 109 * Use the shared bsp_postdriver_hook() implementation 76 * bsp_start 77 * 78 * This routine does the bulk of the system initialization. 110 79 */ 111 112 void bsp_postdriver_hook(void);113 80 114 81 int bsp_start( -
c/src/lib/libbsp/powerpc/papyrus/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=bspclean bsp post bspstart main sbrk setvec14 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/powerpc/papyrus/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bsp_start()1 /* 2 2 * 3 3 * This routine starts the application. It includes application, … … 5 5 * The generic CPU dependent initialization has been performed 6 6 * before this routine is invoked. 7 *8 * INPUT: NONE9 *10 * OUTPUT: NONE11 7 * 12 8 * Author: Andrew Bray <andy@i-cubed.co.uk> … … 58 54 char *rtems_progname; 59 55 60 /* Initialize whatever libc we are using61 * called from postdriver hook56 /* 57 * Use the shared implementations of the following routines 62 58 */ 63 64 void bsp_libc_init() 65 { 66 extern int _end; 67 rtems_unsigned32 heap_start; 68 69 heap_start = (rtems_unsigned32) &_end; 70 if (heap_start & (CPU_ALIGNMENT-1)) 71 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 72 73 /* 74 * The last parameter to RTEMS_Malloc_Initialize is the "chunk" 75 * size which a multiple of will be requested on each sbrk() 76 * call by malloc(). A value of 0 indicates that sbrk() should 77 * not be called to extend the heap. 78 */ 79 80 RTEMS_Malloc_Initialize((void *) heap_start, 64 * 1024, 0); 81 82 /* 83 * Init the RTEMS libio facility to provide UNIX-like system 84 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 85 * Uses malloc() to get area for the iops, so must be after malloc init 86 */ 87 88 rtems_libio_init(); 89 90 /* 91 * Set up for the libc handling. 92 */ 93 94 if (BSP_Configuration.ticks_per_timeslice > 0) 95 libc_init(1); /* reentrant if possible */ 96 else 97 libc_init(0); /* non-reentrant */ 98 99 } 59 60 void bsp_postdriver_hook(void); 61 void bsp_libc_init( void *, unsigned32, int ); 100 62 101 63 /* … … 113 75 */ 114 76 115 void 116 bsp_pretasking_hook(void) 77 void bsp_pretasking_hook(void) 117 78 { 118 bsp_libc_init(); 79 extern int _end; 80 rtems_unsigned32 heap_start; 81 82 heap_start = (rtems_unsigned32) &_end; 83 if (heap_start & (CPU_ALIGNMENT-1)) 84 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); 85 86 bsp_libc_init((void *) heap_start, 64 * 1024, 0); 119 87 120 88 #ifdef RTEMS_DEBUG … … 123 91 } 124 92 125 126 93 /* 127 * Use the shared bsp_postdriver_hook() implementation 94 * bsp_start 95 * 96 * This routine does the bulk of the system initialization. 128 97 */ 129 130 void bsp_postdriver_hook(void);131 132 98 133 99 void bsp_start( void ) -
c/src/lib/libbsp/powerpc/psim/clock/clock.c
rb3d3a34e rb6394ae 7 7 * microseconds per tick. 8 8 * 9 * COPYRIGHT (c) 1989 , 1990, 1991, 1992, 1993, 1994, 1997.9 * COPYRIGHT (c) 1989-1998. 10 10 * On-Line Applications Research Corporation (OAR). 11 * All rightsassigned to U.S. Government, 1994.12 * 13 * Th is material may be reproduced by or for the U.S. Government pursuant14 * to the copyright license under the clause at DFARS 252.227-7013. This15 * notice must appear in all copies of this file and its derivatives.11 * Copyright assigned to U.S. Government, 1994. 12 * 13 * The license and distribution terms for this file may be 14 * found in found in the file LICENSE in this distribution or at 15 * http://www.OARcorp.com/rtems/license.html. 16 16 * 17 17 * $Id$ -
c/src/lib/libbsp/powerpc/psim/include/bsp.h
rb3d3a34e rb6394ae 20 20 * Derived from c/src/lib/libbsp/no_cpu/no_bsp/include/bsp.h 21 21 * 22 * COPYRIGHT (c) 1989 , 1990, 1991, 1992, 1993, 1994.22 * COPYRIGHT (c) 1989-1998. 23 23 * On-Line Applications Research Corporation (OAR). 24 * All rightsassigned to U.S. Government, 1994.24 * Copyright assigned to U.S. Government, 1994. 25 25 * 26 * Th is material may be reproduced by or for the U.S. Government pursuant27 * to the copyright license under the clause at DFARS 252.227-7013. This28 * notice must appear in all copies of this file and its derivatives.26 * The license and distribution terms for this file may be 27 * found in found in the file LICENSE in this distribution or at 28 * http://www.OARcorp.com/rtems/license.html. 29 29 * 30 30 * $Id$ -
c/src/lib/libbsp/powerpc/psim/include/coverhd.h
rb3d3a34e rb6394ae 15 15 * all calling overhead including passing of arguments. 16 16 * 17 * COPYRIGHT (c) 1989 , 1990, 1991, 1992, 1993, 1994.17 * COPYRIGHT (c) 1989-1998. 18 18 * On-Line Applications Research Corporation (OAR). 19 * All rightsassigned to U.S. Government, 1994.19 * Copyright assigned to U.S. Government, 1994. 20 20 * 21 * Th is material may be reproduced by or for the U.S. Government pursuant22 * to the copyright license under the clause at DFARS 252.227-7013. This23 * notice must appear in all copies of this file and its derivatives.21 * The license and distribution terms for this file may be 22 * found in found in the file LICENSE in this distribution or at 23 * http://www.OARcorp.com/rtems/license.html. 24 24 * 25 25 * $Id$ -
c/src/lib/libbsp/powerpc/psim/shmsupp/README
rb3d3a34e rb6394ae 4 4 5 5 This shared memory driver support code works with a modified version 6 of the PowerPC Sim 6 of the PowerPC Simulator. The modifications are not yet merged 7 into the mainsteam distribution. -
c/src/lib/libbsp/powerpc/psim/shmsupp/addrconv.c
rb3d3a34e rb6394ae 9 9 * returns - converted address 10 10 * 11 * COPYRIGHT (c) 1989-199 7.11 * COPYRIGHT (c) 1989-1998. 12 12 * On-Line Applications Research Corporation (OAR). 13 13 * Copyright assigned to U.S. Government, 1994. 14 14 * 15 * The license and distribution terms for this file may in16 * the file LICENSE in this distribution or at15 * The license and distribution terms for this file may be 16 * found in found in the file LICENSE in this distribution or at 17 17 * http://www.OARcorp.com/rtems/license.html. 18 18 * -
c/src/lib/libbsp/powerpc/psim/shmsupp/getcfg.c
rb3d3a34e rb6394ae 13 13 * NOTES: No interrupt support. 14 14 * 15 * COPYRIGHT (c) 1989-199 7.15 * COPYRIGHT (c) 1989-1998. 16 16 * On-Line Applications Research Corporation (OAR). 17 17 * Copyright assigned to U.S. Government, 1994. 18 18 * 19 * The license and distribution terms for this file may in20 * the file LICENSE in this distribution or at19 * The license and distribution terms for this file may be 20 * found in found in the file LICENSE in this distribution or at 21 21 * http://www.OARcorp.com/rtems/license.html. 22 22 * -
c/src/lib/libbsp/powerpc/psim/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=bspclean bsp post bspstart main sbrk setvec14 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/powerpc/psim/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bspstart.c 2 * 1 /* 3 2 * This set of routines starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. … … 6 5 * before any of these are invoked. 7 6 * 8 * Called by RTEMS::RTEMS constructor in rtems-ctor.cc 9 * 10 * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1997. 7 * COPYRIGHT (c) 1989-1998. 11 8 * On-Line Applications Research Corporation (OAR). 12 9 * All rights assigned to U.S. Government, 1994. 13 10 * 14 * Th is material may be reproduced by or for the U.S. Government pursuant15 * to the copyright license under the clause at DFARS 252.227-7013. This16 * notice must appear in all copies of this file and its derivatives.11 * The license and distribution terms for this file may be 12 * found in the file LICENSE in this distribution or at 13 * http://www.OARcorp.com/rtems/license.html. 17 14 * 18 15 * $Id$ … … 69 66 */ 70 67 71 rtems_extension 72 fast_idle_switch_hook(rtems_tcb *current_task, 73 rtems_tcb *heir_task) 68 rtems_extension fast_idle_switch_hook( 69 rtems_tcb *current_task, 70 rtems_tcb *heir_task 71 ) 74 72 { 75 73 static rtems_unsigned32 normal_clock = ~0; … … 101 99 102 100 /* 103 * bsp_libc_init 104 * 105 * Initialize whatever libc we are using called from bsp_postdriver_hook. 106 */ 107 108 void bsp_libc_init(void) 101 * Use the shared implementations of the following routines 102 */ 103 104 void bsp_postdriver_hook(void); 105 void bsp_libc_init( void *, unsigned32, int ); 106 107 /* 108 * bsp_pretasking_hook 109 * 110 * BSP pretasking hook. Called just before drivers are initialized. 111 * Used to setup libc and install any BSP extensions. 112 */ 113 114 void bsp_pretasking_hook(void) 109 115 { 110 116 extern int end; … … 119 125 heap_size &= 0xfffffff0; /* keep it as a multiple of 16 bytes */ 120 126 121 RTEMS_Malloc_Initialize((void *) heap_start, heap_size, 0); 122 123 /* 124 * Init the RTEMS libio facility to provide UNIX-like system 125 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 126 * Uses malloc() to get area for the iops, so must be after malloc init 127 */ 128 129 rtems_libio_init(); 130 131 /* 132 * Set up for the libc handling. 133 */ 134 135 if (BSP_Configuration.ticks_per_timeslice > 0) 136 libc_init(1); /* reentrant if possible */ 137 else 138 libc_init(0); /* non-reentrant */ 139 140 } 141 142 143 /* 144 * bsp_pretasking_hook 145 * 146 * BSP pretasking hook. Called just before drivers are initialized. 147 * Used to setup libc and install any BSP extensions. 148 */ 149 150 void bsp_pretasking_hook(void) 151 { 152 bsp_libc_init(); 127 bsp_libc_init((void *) heap_start, heap_size, 0); 153 128 154 129 #if PSIM_FAST_IDLE … … 187 162 188 163 } 189 190 /*191 * Use the shared bsp_postdriver_hook() implementation192 */193 194 void bsp_postdriver_hook(void);195 164 196 165 /* -
c/src/lib/libbsp/powerpc/psim/startup/linkcmds
rb3d3a34e rb6394ae 1 /* 2 * 3 * COPYRIGHT (c) 1989-1998. 4 * On-Line Applications Research Corporation (OAR). 5 * Copyright assigned to U.S. Government, 1994. 6 * 7 * The license and distribution terms for this file may be 8 * found in found in the file LICENSE in this distribution or at 9 * http://www.OARcorp.com/rtems/license.html. 10 * 11 * $Id$ 12 */ 13 1 14 OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc", 2 15 "elf32-powerpc") -
c/src/lib/libbsp/powerpc/psim/startup/setvec.c
rb3d3a34e rb6394ae 30 30 * Derived from c/src/lib/libbsp/no_cpu/no_bsp/startup/setvec.c: 31 31 * 32 * COPYRIGHT (c) 1989 , 1990, 1991, 1992, 1993, 1994.32 * COPYRIGHT (c) 1989-1998. 33 33 * On-Line Applications Research Corporation (OAR). 34 * All rightsassigned to U.S. Government, 1994.34 * Copyright assigned to U.S. Government, 1994. 35 35 * 36 * Th is material may be reproduced by or for the U.S. Government pursuant37 * to the copyright license under the clause at DFARS 252.227-7013. This38 * notice must appear in all copies of this file and its derivatives.36 * The license and distribution terms for this file may be 37 * found in found in the file LICENSE in this distribution or at 38 * http://www.OARcorp.com/rtems/license.html. 39 39 * 40 40 * $Id$ -
c/src/lib/libbsp/powerpc/psim/timer/timer.c
rb3d3a34e rb6394ae 4 4 * the MEC. 5 5 * 6 * COPYRIGHT (c) 1989 , 1990, 1991, 1992, 1993, 1994.6 * COPYRIGHT (c) 1989-1998. 7 7 * On-Line Applications Research Corporation (OAR). 8 * All rightsassigned to U.S. Government, 1994.8 * Copyright assigned to U.S. Government, 1994. 9 9 * 10 * Th is material may be reproduced by or for the U.S. Government pursuant11 * to the copyright license under the clause at DFARS 252.227-7013. This12 * notice must appear in all copies of this file and its derivatives.10 * The license and distribution terms for this file may be 11 * found in found in the file LICENSE in this distribution or at 12 * http://www.OARcorp.com/rtems/license.html. 13 13 * 14 14 * Ported to ERC32 implementation of the SPARC by On-Line Applications -
c/src/lib/libbsp/powerpc/psim/tools/psim
rb3d3a34e rb6394ae 2 2 # 3 3 # Shell script to ease invocation of the powerpc simulator 4 # 5 # COPYRIGHT (c) 1989-1998. 6 # On-Line Applications Research Corporation (OAR). 7 # Copyright assigned to U.S. Government, 1994. 8 # 9 # The license and distribution terms for this file may be 10 # found in found in the file LICENSE in this distribution or at 11 # http://www.OARcorp.com/rtems/license.html. 4 12 # 5 13 # $Id$ -
c/src/lib/libbsp/powerpc/psim/tools/runtest
rb3d3a34e rb6394ae 1 1 #!/bin/sh -p 2 #3 # $Id$4 2 # 5 3 # Run rtems tests on the powerpc simulator … … 7 5 # Typically the test is then run, although it can be generated 8 6 # and left as a file using -s 7 # 8 # COPYRIGHT (c) 1989-1998. 9 # On-Line Applications Research Corporation (OAR). 10 # Copyright assigned to U.S. Government, 1994. 11 # 12 # The license and distribution terms for this file may be 13 # found in found in the file LICENSE in this distribution or at 14 # http://www.OARcorp.com/rtems/license.html. 15 # 16 # $Id$ 9 17 # 10 18 -
c/src/lib/libbsp/powerpc/psim/vectors/vectors.s
rb3d3a34e rb6394ae 2 2 * 3 3 * This file contains the assembly code for the PowerPC 4 * interrupt ve neers for RTEMS.4 * interrupt vectors for RTEMS. 5 5 * 6 * COPYRIGHT (c) 1989-1998. 7 * On-Line Applications Research Corporation (OAR). 8 * Copyright assigned to U.S. Government, 1994. 9 * 10 * The license and distribution terms for this file may be 11 * found in found in the file LICENSE in this distribution or at 12 * http://www.OARcorp.com/rtems/license.html. 13 * 14 * $Id$ 6 15 */ 7 16 … … 22 31 * offset from 0x????0000 to the first location in the file. This 23 32 * will usually be 0x0000 or 0x0100. 24 *25 * $Id$26 33 */ 27 34 -
c/src/lib/libbsp/sh/gensh1/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=bsp post bspstart bspclean sbrk setvec main14 C_PIECES=bsplibc bsppost bspstart bspclean sbrk setvec main 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/sh/gensh1/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bsp_start() 2 * 1 /* 3 2 * This routine starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. 5 4 * The generic CPU dependent initialization has been performed 6 5 * before this routine is invoked. 7 *8 * INPUT: NONE9 *10 * OUTPUT: NONE11 6 * 12 7 * Authors: Ralf Corsepius (corsepiu@faw.uni-ulm.de) and … … 51 46 char *rtems_progname; 52 47 53 /* Initialize whatever libc we are using54 * called from postdriver hook48 /* 49 * Use the shared implementations of the following routines 55 50 */ 56 57 58 void bsp_libc_init() 59 { 60 /* 61 * The last parameter to RTEMS_Malloc_Initialize is the "chunk" 62 * size which a multiple of will be requested on each sbrk() 63 * call by malloc(). A value of 0 indicates that sbrk() should 64 * not be called to extend the heap. 65 */ 66 67 RTEMS_Malloc_Initialize(&HeapStart, sizeof(unsigned32) * (&HeapEnd - &HeapStart), 0); 68 69 /* 70 * Init the RTEMS libio facility to provide UNIX-like system 71 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 72 * Uses malloc() to get area for the iops, so must be after malloc init 73 */ 74 75 rtems_libio_init(); 76 77 /* 78 * Set up for the libc handling. 79 */ 80 81 if (BSP_Configuration.ticks_per_timeslice > 0) 82 libc_init(1); /* reentrant if possible */ 83 else 84 libc_init(0); /* non-reentrant */ 85 } 51 52 void bsp_postdriver_hook(void); 53 void bsp_libc_init( void *, unsigned32, int ); 86 54 87 55 /* … … 98 66 */ 99 67 100 void 101 bsp_pretasking_hook(void) 68 void bsp_pretasking_hook(void) 102 69 { 103 bsp_libc_init( );70 bsp_libc_init((&HeapStart, sizeof(unsigned32) * (&HeapEnd - &HeapStart), 0); 104 71 105 72 #ifdef RTEMS_DEBUG … … 109 76 110 77 /* 111 * Use the shared bsp_postdriver_hook() implementation 78 * bsp_start 79 * 80 * This routine does the bulk of the system initialization. 112 81 */ 113 114 void bsp_postdriver_hook(void);115 116 82 117 83 void bsp_start(void) -
c/src/lib/libbsp/sparc/erc32/startup/Makefile.in
rb3d3a34e rb6394ae 12 12 13 13 # C source names, if any, go here -- minus the .c 14 C_PIECES=bspclean bsp post bspstart main sbrk setvec spurious14 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec spurious 15 15 C_FILES=$(C_PIECES:%=%.c) 16 16 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/sparc/erc32/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bspstart.c 2 * 1 /* 3 2 * This set of routines starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. … … 6 5 * before any of these are invoked. 7 6 * 8 * Called by RTEMS::RTEMS constructor in rtems-ctor.cc9 *10 7 * COPYRIGHT (c) 1989-1998. 11 8 * On-Line Applications Research Corporation (OAR). … … 42 39 43 40 rtems_cpu_table Cpu_table; 44 rtems_unsigned32 bsp_isr_level;45 41 46 42 /* … … 73 69 */ 74 70 75 rtems_extension 76 fast_idle_switch_hook(rtems_tcb *current_task, 77 rtems_tcb *heir_task) 71 rtems_extension fast_idle_switch_hook( 72 rtems_tcb *current_task, 73 rtems_tcb *heir_task 74 ) 78 75 { 79 76 static rtems_unsigned32 normal_clock = ~0; … … 102 99 103 100 /* 104 * bsp_libc_init 105 * 106 * Initialize whatever libc we are using called from bsp_postdriver_hook. 107 */ 108 109 void bsp_libc_init(void) 101 * Use the shared implementations of the following routines 102 */ 103 104 void bsp_postdriver_hook(void); 105 void bsp_libc_init( void *, unsigned32, int ); 106 107 /* 108 * bsp_pretasking_hook 109 * 110 * BSP pretasking hook. Called just before drivers are initialized. 111 * Used to setup libc and install any BSP extensions. 112 */ 113 114 void bsp_pretasking_hook(void) 110 115 { 111 116 extern int end; … … 120 125 heap_size &= 0xfffffff0; /* keep it as a multiple of 16 bytes */ 121 126 122 RTEMS_Malloc_Initialize((void *) heap_start, heap_size, 0); 123 124 /* 125 * Init the RTEMS libio facility to provide UNIX-like system 126 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 127 * Uses malloc() to get area for the iops, so must be after malloc init 128 */ 129 130 rtems_libio_init(); 131 132 /* 133 * Set up for the libc handling. 134 */ 135 136 if (BSP_Configuration.ticks_per_timeslice > 0) 137 libc_init(1); /* reentrant if possible */ 138 else 139 libc_init(0); /* non-reentrant */ 140 141 } 142 143 144 /* 145 * bsp_pretasking_hook 146 * 147 * BSP pretasking hook. Called just before drivers are initialized. 148 * Used to setup libc and install any BSP extensions. 149 */ 150 151 void bsp_pretasking_hook(void) 152 { 153 bsp_libc_init(); 127 bsp_libc_init((void *) heap_start, heap_size, 0); 128 154 129 155 130 #if SIMSPARC_FAST_IDLE … … 190 165 191 166 /* 192 * Use the shared bsp_postdriver_hook() implementation193 */194 195 void bsp_postdriver_hook(void);196 197 198 /*199 167 * bsp_start 200 168 * -
c/src/lib/libbsp/unix/posix/startup/Makefile.in
rb3d3a34e rb6394ae 13 13 14 14 # C source names, if any, go here -- minus the .c 15 C_PIECES=bspclean bsp start setvec15 C_PIECES=bspclean bsplibc bspstart setvec 16 16 C_FILES=$(C_PIECES:%=%.c) 17 17 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libbsp/unix/posix/startup/bspstart.c
rb3d3a34e rb6394ae 1 /* bsp_start() 2 * 1 /* 3 2 * This routine starts the application. It includes application, 4 3 * board, and monitor specific initialization and configuration. … … 7 6 * 8 7 * Called by RTEMS::RTEMS constructor in startup-ctor.cc 9 *10 * INPUT: NONE11 *12 * OUTPUT: NONE13 8 * 14 9 * COPYRIGHT (c) 1989-1998. … … 69 64 70 65 /* 71 * Function: bsp_libc_init 72 * Created: 94/12/6 66 * Use the shared implementations of the following routines 67 */ 68 69 void bsp_postdriver_hook(void); 70 void bsp_libc_init( void *, unsigned32, int ); 71 72 /* 73 * Function: bsp_pretasking_hook 74 * Created: 95/03/10 73 75 * 74 76 * Description: 75 * Initialize whatever libc we are using 76 * called from bsp_postdriver_hook 77 * 78 * 79 * Parameters: 80 * none 81 * 82 * Returns: 83 * none. 84 * 85 * Side Effects: 86 * 87 * 88 * Notes: 89 * 90 * Deficiencies/ToDo: 91 * 92 * 93 */ 94 95 void 96 bsp_libc_init(void) 77 * BSP pretasking hook. Called just before drivers are initialized. 78 * Used to setup libc and install any BSP extensions. 79 * 80 * NOTES: 81 * Must not use libc (to do io) from here, since drivers are 82 * not yet initialized. 83 */ 84 85 void bsp_pretasking_hook(void) 97 86 { 98 87 void *heap_start; … … 105 94 heap_start = 0; 106 95 107 RTEMS_Malloc_Initialize((void *)heap_start, Heap_size, 1024 * 1024); 108 109 /* 110 * Init the RTEMS libio facility to provide UNIX-like system 111 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 112 * Uses malloc() to get area for the iops, so must be after malloc init 113 */ 114 115 rtems_libio_init(); 116 117 libc_init(1); 118 } 119 120 121 /* 122 * Function: bsp_pretasking_hook 123 * Created: 95/03/10 124 * 125 * Description: 126 * BSP pretasking hook. Called just before drivers are initialized. 127 * Used to setup libc and install any BSP extensions. 128 * 129 * Parameters: 130 * none 131 * 132 * Returns: 133 * nada 134 * 135 * Side Effects: 136 * installs a few extensions 137 * 138 * Notes: 139 * Must not use libc (to do io) from here, since drivers are 140 * not yet initialized. 141 * 142 * Deficiencies/ToDo: 143 * 144 * 145 */ 146 147 void 148 bsp_pretasking_hook(void) 149 { 150 bsp_libc_init(); 96 bsp_libc_init((void *)heap_start, Heap_size, 1024 * 1024); 97 151 98 152 99 #ifdef RTEMS_DEBUG … … 166 113 */ 167 114 168 void 169 bsp_postdriver_hook(void) 115 void bsp_postdriver_hook(void) 170 116 { 171 117 return; … … 173 119 174 120 /* 175 * Function: bsp_start 176 * Created: 94/12/6 177 * 178 * Description: 179 * called by crt0 as our "main" equivalent 180 * 181 * 182 * 183 * Parameters: 184 * 185 * 186 * Returns: 187 * 188 * 189 * Side Effects: 190 * 191 * 192 * Notes: 193 * 194 * 195 * Deficiencies/ToDo: 196 * 197 * 198 */ 199 200 void 201 bsp_start(void) 121 * bsp_start 122 * 123 * This routine does the bulk of the system initialization. 124 */ 125 126 void bsp_start(void) 202 127 { 203 128 unsigned32 workspace_ptr;
Note: See TracChangeset
for help on using the changeset viewer.