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


Ignore:
Timestamp:
Mar 21, 1998, 3:37:18 PM (24 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/dmv152/startup
Files:
1 added
2 edited

Legend:

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

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

    r2b4aec8 re2a2ec60  
    140140}
    141141
    142 int main(
    143   int argc,
    144   char **argv,
    145   char **environp
    146 )
     142void bsp_start( void )
    147143{
    148144  m68k_isr_entry *monitors_vector_table;
     
    150146  void           *vbr;
    151147
    152   if ((argc > 0) && argv && argv[0])
    153     rtems_progname = argv[0];
    154   else
    155     rtems_progname = "RTEMS";
    156 
    157148  monitors_vector_table = (m68k_isr_entry *)0;   /* Monitor Vectors are at 0 */
    158149  m68k_set_vbr( monitors_vector_table );
     
    247238  rtems_libio_config(&BSP_Configuration, BSP_LIBIO_MAX_FDS);
    248239
    249   rtems_initialize_executive( &BSP_Configuration, &Cpu_table );
    250   /* does not return */
    251 
    252240  /* Clock_exit is done as an atexit() function */
    253 
    254   VME_interrupt_Disable( 0xff );
    255 
    256   /* return like a "normal" subroutine to the monitor */
    257   return 0;
    258 }
     241}
Note: See TracChangeset for help on using the changeset viewer.