Changeset e2a2ec60 in rtems for c/src/lib/libbsp/m68k/mvme147


Ignore:
Timestamp:
Mar 21, 1998, 3:37:18 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
77bf1b1
Parents:
2b4aec8
Message:

Switch to using a shared main() for all of the embedded BSPs
based on the GNU tools. This usually involved correcting the
type of bsp_start(), bsp_cleanup(), adjusting the start code to
call the right start routine (the shared boot_card()), and then
removing code from bsp_start() which was performed in the new
boot_card()/main() path.

Location:
c/src/lib/libbsp/m68k/mvme147/startup
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/mvme147/startup/Makefile.in

    r2b4aec8 re2a2ec60  
    1212
    1313# C source names, if any, go here -- minus the .c
    14 C_PIECES=bspclean bspstart sbrk setvec
     14C_PIECES=bspclean bspstart main sbrk setvec
    1515C_FILES=$(C_PIECES:%=%.c)
    1616C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/m68k/mvme147/startup/bspstart.c

    r2b4aec8 re2a2ec60  
    145145}
    146146
    147 
    148 int main(
    149   int argc,
    150   char **argv,
    151   char **environp
    152 )
     147void bsp_start( void )
    153148{
    154149  m68k_isr_entry *monitors_vector_table;
    155150  int             index;
    156 
    157   if ((argc > 0) && argv && argv[0])
    158     rtems_progname = argv[0];
    159   else
    160     rtems_progname = "RTEMS";
    161151
    162152  monitors_vector_table = (m68k_isr_entry *)0;   /* 135Bug Vectors are at 0 */
     
    236226
    237227  rtems_libio_config(&BSP_Configuration, BSP_LIBIO_MAX_FDS);
    238 
    239   rtems_initialize_executive( &BSP_Configuration, &Cpu_table );
    240   /* does not return */
    241 
    242   bsp_cleanup();
    243 
    244   return 0;
    245 }
     228}
Note: See TracChangeset for help on using the changeset viewer.