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


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/idp/startup
Files:
2 edited

Legend:

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

    r2b4aec8 re2a2ec60  
    1212
    1313# C source names, if any, go here -- minus the .c
    14 C_PIECES=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/idp/startup/bspstart.c

    r2b4aec8 re2a2ec60  
    149149}
    150150
    151 int main(
    152   int argc,
    153   char **argv,
    154   char **environp
    155 )
     151void bsp_start( void )
    156152{
    157153  m68k_isr_entry *monitors_vector_table;
    158154  int             index;
    159 
    160   if ((argc > 0) && argv && argv[0])
    161     rtems_progname = argv[0];
    162   else
    163     rtems_progname = "RTEMS";
    164155
    165156  duart_base = (unsigned char *)DUART_ADDR;
     
    249240
    250241/*  led_putnum('e'); * for debugging purposes only */
    251   rtems_initialize_executive( &BSP_Configuration, &Cpu_table );/* does not return */
    252  
     242
    253243  /* Clock_exit is done as an atexit() function */
    254 
    255   return 0;
    256 }
     244}
Note: See TracChangeset for help on using the changeset viewer.