Changeset b6394ae in rtems for c/src/lib/libbsp/m68k/efi332


Ignore:
Timestamp:
Apr 15, 1998, 3:13:01 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
bd9c3d1
Parents:
b3d3a34e
Message:

Transitioned to shared bsp_libc_init() and cleaned up comments.

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

Legend:

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

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

    rb3d3a34e rb6394ae  
    1 /*  bsp_start()
    2  *
     1/*
    32 *  This routine starts the application.  It includes application,
    43 *  board, and monitor specific initialization and configuration.
    54 *  The generic CPU dependent initialization has been performed
    65 *  before this routine is invoked.
    7  *
    8  *  INPUT:  NONE
    9  *
    10  *  OUTPUT: NONE
    116 *
    127 *  COPYRIGHT (c) 1989-1998.
     
    3934char *rtems_progname;
    4035
    41 /*      Initialize whatever libc we are using
    42  *      called from postdriver hook
     36/*
     37 *  Use the shared implementations of the following routines
    4338 */
     39 
     40void bsp_postdriver_hook(void);
     41void bsp_libc_init( void *, unsigned32, int );
    4442
    45 void bsp_libc_init()
     43/*
     44 *  Function:   bsp_pretasking_hook
     45 *  Created:    95/03/10
     46 *
     47 *  Description:
     48 *      BSP pretasking hook.  Called just before drivers are initialized.
     49 *      Used to setup libc and install any BSP extensions.
     50 *
     51 *  NOTES:
     52 *      Must not use libc (to do io) from here, since drivers are
     53 *      not yet initialized.
     54 *
     55 */
     56 
     57void bsp_pretasking_hook(void)
    4658{
    4759/*   extern int end; */
     
    5971  }
    6072
    61   RTEMS_Malloc_Initialize((void *) heap_start,
    62                           (RAM_END - heap_start), 0);
    63    
    64   /*
    65    *  Init the RTEMS libio facility to provide UNIX-like system
    66    *  calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc)
    67    *  Uses malloc() to get area for the iops, so must be after malloc init
    68    */
    69 
    70   rtems_libio_init();
    71 
    72   /*
    73    * Set up for the libc handling.
    74    */
    75  
    76   if (BSP_Configuration.ticks_per_timeslice > 0)
    77     libc_init(1);                /* reentrant if possible */
    78   else
    79     libc_init(0);                /* non-reentrant */
    80 }
    81 
    82 /*
    83  *  Function:   bsp_pretasking_hook
    84  *  Created:    95/03/10
    85  *
    86  *  Description:
    87  *      BSP pretasking hook.  Called just before drivers are initialized.
    88  *      Used to setup libc and install any BSP extensions.
    89  *
    90  *  NOTES:
    91  *      Must not use libc (to do io) from here, since drivers are
    92  *      not yet initialized.
    93  *
    94  */
    95  
    96 void
    97 bsp_pretasking_hook(void)
    98 {
    99     bsp_libc_init();
     73  bsp_libc_init((void *) heap_start, (RAM_END - heap_start), 0);
    10074 
    10175#ifdef RTEMS_DEBUG
     
    10478}
    10579 
    106  
    10780/*
    108  *  Use the shared bsp_postdriver_hook() implementation
     81 *  bsp_start
     82 *
     83 *  This routine does the bulk of the system initialization.
    10984 */
    110  
    111 void bsp_postdriver_hook(void);
    11285
    11386void bsp_start( void )
Note: See TracChangeset for help on using the changeset viewer.