Changeset c8d9183 in rtems


Ignore:
Timestamp:
Jul 2, 1999, 6:57:11 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
a381e6e4
Parents:
a0a225f
Message:

Patch from Ralf Corsepius <corsepiu@…> that splits
boot_card() and main() into separate files to ease configuration
of other packages. This was a big step in the way to build TCL,
ncurses, and zlib for RTEMS.

Location:
c/src/lib/libbsp
Files:
1 added
35 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/a29k/portsw/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec gnatinstallhandler
     21C_PIECES=bspclean bsplibc bsppost bspstart bootcard main sbrk setvec gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/hppa1.1/simhppa/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec gnatinstallhandler
     21C_PIECES=bspclean bsplibc bsppost bspstart bootcard main sbrk setvec gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/i386/force386/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec gnatinstallhandler
     21C_PIECES=bspclean bsplibc bsppost bspstart bootcard main sbrk setvec gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/i386/i386ex/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk irq irq_init i386-stub-glue uart i386-stub gnatinstallhandler
     21C_PIECES=bspclean bsplibc bsppost bspstart bootcard main sbrk irq irq_init i386-stub-glue uart i386-stub gnatinstallhandler
    2222
    2323C_FILES=$(C_PIECES:%=%.c)
  • c/src/lib/libbsp/i386/pc386/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bsplibc bsppost bspstart exit irq irq_init main sbrk i386-stub i386-stub-glue uart pcibios gnatinstallhandler
     21C_PIECES=bsplibc bsppost bspstart exit irq irq_init bootcard main sbrk i386-stub i386-stub-glue uart pcibios gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/i386/ts_386ex/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk irq irq_init i386-stub-glue uart i386-stub gnatinstallhandler
     21C_PIECES=bspclean bsplibc bsppost bspstart bootcard main sbrk irq irq_init i386-stub-glue uart i386-stub gnatinstallhandler
    2222
    2323C_FILES=$(C_PIECES:%=%.c)
  • c/src/lib/libbsp/i960/cvme961/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec gnatinstallhandler
     21C_PIECES=bspclean bsplibc bsppost bspstart bootcard main sbrk setvec gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/m68k/dmv152/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec vmeintr gnatinstallhandler
     21C_PIECES=bspclean bsplibc bsppost bspstart bootcard main sbrk setvec vmeintr gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/m68k/efi332/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bsplibc bsppost bspstart bspclean main sbrk setvec gnatinstallhandler
     21C_PIECES=bsplibc bsppost bspstart bspclean bootcard main sbrk setvec gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/m68k/efi68k/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bsplibc bsppost bspstart bspclean efi68k_tcp efi68k_wd main sbrk setvec gnatinstallhandler
     21C_PIECES=bsplibc bsppost bspstart bspclean efi68k_tcp efi68k_wd bootcard main sbrk setvec gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/m68k/gen68302/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec gnatinstallhandler
     21C_PIECES=bspclean bsplibc bsppost bspstart bootcard main sbrk setvec gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/m68k/gen68340/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart init68340 main sbrk setvec dumpanic gnatinstallhandler
     21C_PIECES=bspclean bsplibc bsppost bspstart init68340 bootcard main sbrk setvec dumpanic gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/m68k/gen68360/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=alloc360 bspclean bsplibc bsppost bspstart init68360 main sbrk setvec gnatinstallhandler
     21C_PIECES=alloc360 bspclean bsplibc bsppost bspstart init68360 bootcard main sbrk setvec gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/m68k/idp/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec gnatinstallhandler
     21C_PIECES=bspclean bsplibc bsppost bspstart bootcard main sbrk setvec gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/m68k/mvme136/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec gnatinstallhandler
     21C_PIECES=bspclean bsplibc bsppost bspstart bootcard main sbrk setvec gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/m68k/mvme147/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec gnatinstallhandler
     21C_PIECES=bspclean bsplibc bsppost bspstart bootcard main sbrk setvec gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/m68k/mvme147s/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec gnatinstallhandler
     21C_PIECES=bspclean bsplibc bsppost bspstart bootcard main sbrk setvec gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/m68k/mvme162/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main page_table sbrk setvec gnatinstallhandler
     21C_PIECES=bspclean bsplibc bsppost bspstart bootcard main page_table sbrk setvec gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/m68k/mvme167/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main page_table sbrk setvec gnatinstallhandler
     21C_PIECES=bspclean bsplibc bsppost bspstart bootcard main page_table sbrk setvec gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/m68k/ods68302/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=crc debugport gdb-hooks main m68302scc m68k-stub memcheck trace \
    22   gnatinstallhandler bsplibc bsppost bspstart bspclean sbrk setvec
     21C_PIECES=crc debugport gdb-hooks bootcard main m68302scc m68k-stub memcheck trace gnatinstallhandler bsplibc bsppost bspstart bspclean sbrk setvec
    2322C_FILES=$(C_PIECES:%=%.c)
    2423C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/mips64orion/p4000/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec inittlb gnatinstallhandler
     21C_PIECES=bspclean bsplibc bsppost bspstart bootcard main sbrk setvec inittlb gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/no_cpu/no_bsp/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec gnatinstallhandler
     21C_PIECES=bspclean bsplibc bsppost bspstart bootcard main sbrk setvec gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/powerpc/dmv177/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec genpvec vmeintr gnatinstallhandler
     21C_PIECES=bspclean bsplibc bsppost bspstart bootcard main sbrk setvec genpvec vmeintr gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/powerpc/eth_comm/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec alloc860 mmu gnatinstallhandler
     21C_PIECES=bspclean bsplibc bsppost bspstart bootcard main sbrk setvec alloc860 mmu gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/powerpc/helas403/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec gnatinstallhandler
     21C_PIECES=bspclean bsplibc bsppost bspstart bootcard main sbrk setvec gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/powerpc/mcp750/startup/Makefile.in

    ra0a225f rc8d9183  
    1010
    1111# C source names, if any, go here -- minus the .c
    12 C_PIECES=main bspstart bsppost bsplibc sbrk bspclean gnatinstallhandler
     12C_PIECES=bootcard main bspstart bsppost bsplibc sbrk bspclean gnatinstallhandler
    1313C_FILES=$(C_PIECES:%=%.c)
    1414C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/powerpc/motorola_powerpc/startup/Makefile.in

    ra0a225f rc8d9183  
    1010
    1111# C source names, if any, go here -- minus the .c
    12 C_PIECES=main bspstart bsppost bsplibc sbrk bspclean gnatinstallhandler
     12C_PIECES=bootcard main bspstart bsppost bsplibc sbrk bspclean gnatinstallhandler
    1313C_FILES=$(C_PIECES:%=%.c)
    1414C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/powerpc/papyrus/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec gnatinstallhandler
     21C_PIECES=bspclean bsplibc bsppost bspstart bootcard main sbrk setvec gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/powerpc/ppcn_60x/startup/Makefile.in

    ra0a225f rc8d9183  
    3737
    3838# Files expected to be from the shared directory:
    39 #  sbrk main bsplibc bsppost
     39#  sbrk bootcard main bsplibc bsppost
    4040STARTUP_PIECES=bspstart bspclean sbrk setvec spurious genpvec swap \
    41   main bsplibc bsppost
     41  main bootcard bsplibc bsppost
    4242
    4343#
  • c/src/lib/libbsp/powerpc/psim/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec gnatinstallhandler
     21C_PIECES=bspclean bsplibc bsppost bspstart bootcard main sbrk setvec gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/powerpc/score603e/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec \
     21C_PIECES=bspclean bsplibc bsppost bspstart bootcard main sbrk setvec \
    2222    Hwr_init spurious genpvec $(STARTUP_PIECES) gnatinstallhandler
    2323C_FILES=$(C_PIECES:%=%.c)
  • c/src/lib/libbsp/sh/gensh1/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bsplibc bsppost bspstart bspclean sbrk main gnatinstallhandler
     21C_PIECES=bsplibc bsppost bspstart bspclean sbrk bootcard main gnatinstallhandler
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/shared/main.c

    ra0a225f rc8d9183  
    2222char *rtems_progname;
    2323
    24 extern void bsp_start( void );
    25 extern void bsp_cleanup( void );
    26 
    27 extern rtems_configuration_table  Configuration;
    28 extern rtems_configuration_table  BSP_Configuration;
    29 extern rtems_cpu_table            Cpu_table;
    30 
    31 #if defined(USE_INIT_FINI)
    32 extern void _fini( void );
    33 extern void _init( void );
    34 #endif
    35 
    3624rtems_interrupt_level bsp_isr_level;
    37 
    38 /*
    39  *  Since there is a forward reference
    40  */
    41 
    42 int main(int argc, char **argv);
    43 
    44 int boot_card(int argc, char **argv)
    45 {
    46   int status;
    47 
    48   /*
    49    *  Set default values for the CPU Table fields all ports must have.
    50    *  These values can be overridden in bsp_start() but they are
    51    *  right most of the time.
    52    */
    53 
    54   Cpu_table.pretasking_hook                 = NULL;
    55   Cpu_table.predriver_hook                  = NULL;
    56   Cpu_table.postdriver_hook                 = NULL;
    57   Cpu_table.idle_task                       = NULL;
    58   Cpu_table.do_zero_of_workspace            = TRUE;
    59   Cpu_table.interrupt_stack_size            = RTEMS_MINIMUM_STACK_SIZE;
    60   Cpu_table.extra_mpci_receive_server_stack = 0;
    61   Cpu_table.stack_allocate_hook             = NULL;
    62   Cpu_table.stack_free_hook                 = NULL;
    63 
    64 
    65   /*
    66    *  Copy the configuration table so we and the BSP wants to change it.
    67    */
    68 
    69   BSP_Configuration = Configuration;
    70 
    71   /*
    72    *  The atexit hook will be before the static destructor list's entry
    73    *  point.
    74    */
    75 
    76   bsp_start();
    77 
    78   /*
    79    *  Initialize RTEMS but do NOT start multitasking.
    80    */
    81 
    82   bsp_isr_level =
    83     rtems_initialize_executive_early( &BSP_Configuration, &Cpu_table );
    84 
    85   /*
    86    *  Call main() and get the global constructors invoked if there
    87    *  are any.
    88    */
    89 
    90 #if defined(USE_INIT_FINI)
    91    atexit( _fini );
    92   _init();
    93 #endif
    94 
    95   status = main(argc, argv);
    96 
    97   /*
    98    *  Perform any BSP specific shutdown actions.
    99    */
    100 
    101   bsp_cleanup(); 
    102 
    103   /*
    104    *  Now return to the start code.
    105    */
    106 
    107   return status;
    108 }
    10925
    11026int main(int argc, char **argv)
    11127{
    112 
    11328  if ((argc > 0) && argv && argv[0])
    11429    rtems_progname = argv[0];
  • c/src/lib/libbsp/sparc/erc32/startup/Makefile.in

    ra0a225f rc8d9183  
    1919
    2020# C source names, if any, go here -- minus the .c
    21 C_PIECES=bspclean bsplibc bsppost bspstart main sbrk setvec spurious
     21C_PIECES=bspclean bsplibc bsppost bspstart main bootcard sbrk setvec spurious
    2222C_FILES=$(C_PIECES:%=%.c)
    2323C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libbsp/unix/posix/startup/Makefile.in

    ra0a225f rc8d9183  
    4646else
    4747CXX_MAIN=
    48 C_MAIN=main
     48C_MAIN=main bootcard
    4949endif
    5050
Note: See TracChangeset for help on using the changeset viewer.