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/ods68302/startup
Files:
3 edited

Legend:

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

    r2b4aec8 re2a2ec60  
    1212
    1313# C source names, if any, go here -- minus the .c
    14 C_PIECES=crc debugport gdb-hooks m68302scc m68k-stub memcheck trace \
     14C_PIECES=crc debugport gdb-hooks main m68302scc m68k-stub memcheck trace \
    1515                bspstart bspclean sbrk setvec
    1616C_FILES=$(C_PIECES:%=%.c)
  • c/src/lib/libbsp/m68k/ods68302/startup/bspstart.c

    r2b4aec8 re2a2ec60  
    149149}
    150150
    151 void bsp_start()
     151void bsp_start( void )
    152152{
    153153  /*
     
    231231   *  Don't forget the other CPU Table entries.
    232232   */
    233 
    234   /*
    235    *  Start RTEMS
    236    */
    237 
    238   bsp_isr_level = rtems_initialize_executive_early( &BSP_Configuration, &Cpu_table );
    239 }
    240 
    241 int main(int argc, char **argv, char **environ)
    242 {
    243   if ((argc > 0) && argv && argv[0])
    244     rtems_progname = argv[0];
    245   else
    246     rtems_progname = "RTEMS";
    247 
    248   rtems_initialize_executive_late( bsp_isr_level );
    249 
    250   bsp_cleanup();
    251 
    252   return 0;
    253 }
    254 
    255 void boot_bsp()
    256 {
    257   /* the atexit hook will be before the static destructor list's entry
    258      point */
    259   bsp_start();
    260 
    261   exit(main(0, 0, 0));
    262 }
    263 
     233}
  • c/src/lib/libbsp/m68k/ods68302/startup/cpuboot.c

    r2b4aec8 re2a2ec60  
    111111  */
    112112
    113 void boot_bsp();
     113void boot_card();
    114114void set_debug_traps();
    115115void breakpoint();
     
    128128 
    129129  /* boot the bsp, what ever this means */
    130   boot_bsp();
     130  boot_card();
    131131
    132132  WATCHDOG_TRIGGER();
Note: See TracChangeset for help on using the changeset viewer.