Changeset 3652ad35 in rtems for c/src/lib/libbsp/no_cpu/no_bsp


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.

Location:
c/src/lib/libbsp/no_cpu/no_bsp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/no_cpu/no_bsp/console/console.c

    rb3ac6a8d r3652ad35  
    205205    outbyte( buffer[ count ] );
    206206  }
    207   return maximum;
     207
     208  rw_args->bytes_moved = maximum;
     209  return 0;
    208210}
    209211
  • c/src/lib/libbsp/no_cpu/no_bsp/startup/bspstart.c

    rb3ac6a8d r3652ad35  
    8484    else
    8585        libc_init(0);                /* non-reentrant */
    86 
     86}
     87
     88/*
     89 *  Function:   bsp_pretasking_hook
     90 *  Created:    95/03/10
     91 *
     92 *  Description:
     93 *      BSP pretasking hook.  Called just before drivers are initialized.
     94 *      Used to setup libc and install any BSP extensions.
     95 *
     96 *  NOTES:
     97 *      Must not use libc (to do io) from here, since drivers are
     98 *      not yet initialized.
     99 *
     100 */
     101 
     102void
     103bsp_pretasking_hook(void)
     104{
     105    bsp_libc_init();
     106 
     107#ifdef STACK_CHECKER_ON
    87108    /*
    88109     *  Initialize the stack bounds checker
    89      */
    90 
    91 #ifdef STACK_CHECKER_ON
     110     *  We can either turn it on here or from the app.
     111     */
     112 
    92113    Stack_check_Initialize();
    93114#endif
    94 }
     115 
     116#ifdef RTEMS_DEBUG
     117    rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
     118#endif
     119}
     120 
    95121
    96122/*
     
    120146}
    121147
    122 int main(
     148int bsp_start(
    123149  int argc,
    124150  char **argv,
     
    197223   */
    198224
    199   Cpu_table.pretasking_hook = NULL;
    200 
    201   Cpu_table.predriver_hook = bsp_libc_init;    /* RTEMS resources available */
     225  Cpu_table.pretasking_hook = bsp_pretasking_hook;  /* init libc, etc. */
     226
     227  Cpu_table.predriver_hook = NULL;
    202228
    203229  Cpu_table.postdriver_hook = bsp_postdriver_hook;
  • c/src/lib/libbsp/no_cpu/no_bsp/startup/main.c

    rb3ac6a8d r3652ad35  
    2020int main(
    2121  int   argc,
    22   char **argv
     22  char **argv,
     23  char **environp
    2324)
    2425{
    25   bsp_start();
     26  bsp_start( argc, argv, environp );
    2627
    2728  /*
Note: See TracChangeset for help on using the changeset viewer.