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/m68k/mvme136/startup/bspstart.c

    rb3ac6a8d r3652ad35  
    5454    extern int end;
    5555    rtems_unsigned32        heap_start;
    56 
    57 #ifdef RTEMS_DEBUG
    58     rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
    59 #endif
    6056
    6157    heap_start = (rtems_unsigned32) &end;
     
    8177    else
    8278        libc_init(0);                /* non-reentrant */
    83 
     79}
     80
     81/*
     82 *  Function:   bsp_pretasking_hook
     83 *  Created:    95/03/10
     84 *
     85 *  Description:
     86 *      BSP pretasking hook.  Called just before drivers are initialized.
     87 *      Used to setup libc and install any BSP extensions.
     88 *
     89 *  NOTES:
     90 *      Must not use libc (to do io) from here, since drivers are
     91 *      not yet initialized.
     92 *
     93 */
     94 
     95void
     96bsp_pretasking_hook(void)
     97{
     98    bsp_libc_init();
     99 
     100#ifdef STACK_CHECKER_ON
    84101    /*
    85102     *  Initialize the stack bounds checker
     103     *  We can either turn it on here or from the app.
    86104     */
    87 
    88 #ifdef STACK_CHECKER_ON
     105 
    89106    Stack_check_Initialize();
    90107#endif
    91 }
     108 
     109#ifdef RTEMS_DEBUG
     110    rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
     111#endif
     112}
     113 
    92114
    93115/*
     
    153175   */
    154176
    155   Cpu_table.pretasking_hook = NULL;
    156 
    157   Cpu_table.predriver_hook = bsp_libc_init;  /* RTEMS resources available */
     177  Cpu_table.pretasking_hook = bsp_pretasking_hook;  /* init libc, etc. */
     178
     179  Cpu_table.predriver_hook = NULL;
    158180
    159181  Cpu_table.postdriver_hook = bsp_postdriver_hook;
Note: See TracChangeset for help on using the changeset viewer.