Ignore:
Timestamp:
Sep 19, 1995, 2:53:29 PM (25 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/i386/force386/startup/bspstart.c

    rb3ac6a8d r3652ad35  
    7575    else
    7676        libc_init(0);                /* non-reentrant */
    77 
     77}
     78
     79/*
     80 *  Function:   bsp_pretasking_hook
     81 *  Created:    95/03/10
     82 *
     83 *  Description:
     84 *      BSP pretasking hook.  Called just before drivers are initialized.
     85 *      Used to setup libc and install any BSP extensions.
     86 *
     87 *  NOTES:
     88 *      Must not use libc (to do io) from here, since drivers are
     89 *      not yet initialized.
     90 *
     91 */
     92 
     93void
     94bsp_pretasking_hook(void)
     95{
     96    bsp_libc_init();
     97 
     98#ifdef STACK_CHECKER_ON
    7899    /*
    79100     *  Initialize the stack bounds checker
     101     *  We can either turn it on here or from the app.
    80102     */
    81 
    82 #ifdef STACK_CHECKER_ON
     103 
    83104    Stack_check_Initialize();
    84105#endif
    85 
    86 }
     106 
     107#ifdef RTEMS_DEBUG
     108    rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
     109#endif
     110}
     111 
    87112
    88113/*
     
    136161   */
    137162
    138   Cpu_table.pretasking_hook = NULL;
    139 
    140   Cpu_table.predriver_hook = bsp_libc_init;  /* RTEMS resources available */
     163  Cpu_table.pretasking_hook = bsp_pretasking_hook;  /* init libc, etc. */
     164
     165  Cpu_table.predriver_hook = NULL;
    141166
    142167  Cpu_table.postdriver_hook = bsp_postdriver_hook;
Note: See TracChangeset for help on using the changeset viewer.