Ignore:
Timestamp:
Sep 19, 1995, 2:53:29 PM (26 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
38ffa0c
Parents:
b3ac6a8d
Message:

Minor bug fixes to get all targets compilable and running. The
single biggest changes were the expansion of the workspace size
macro to include other types of objects and the increase in the
minimum stack size for most CPUs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/papyrus/startup/bspstart.c

    rb3ac6a8d r3652ad35  
    102102        libc_init(0);                /* non-reentrant */
    103103
     104}
     105
     106/*
     107 *  Function:   bsp_pretasking_hook
     108 *  Created:    95/03/10
     109 *
     110 *  Description:
     111 *      BSP pretasking hook.  Called just before drivers are initialized.
     112 *      Used to setup libc and install any BSP extensions.
     113 *
     114 *  NOTES:
     115 *      Must not use libc (to do io) from here, since drivers are
     116 *      not yet initialized.
     117 *
     118 */
     119 
     120void
     121bsp_pretasking_hook(void)
     122{
     123    bsp_libc_init();
     124 
     125#ifdef STACK_CHECKER_ON
    104126    /*
    105127     *  Initialize the stack bounds checker
    106      */
    107 
    108 #ifdef STACK_CHECKER_ON
     128     *  We can either turn it on here or from the app.
     129     */
     130 
    109131    Stack_check_Initialize();
    110132#endif
    111 }
     133 
     134#ifdef RTEMS_DEBUG
     135    rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
     136#endif
     137}
     138 
    112139
    113140/*
     
    205232   */
    206233
    207   /*
    208    *  we do not use the pretasking_hook
    209    */
    210 
    211   Cpu_table.pretasking_hook = NULL;
    212 
    213   Cpu_table.predriver_hook = bsp_libc_init;    /* RTEMS resources available */
     234  Cpu_table.pretasking_hook = bsp_pretasking_hook;  /* init libc, etc. */
     235
     236  Cpu_table.predriver_hook = NULL;
    214237
    215238  Cpu_table.postdriver_hook = bsp_postdriver_hook;
Note: See TracChangeset for help on using the changeset viewer.