Changeset 3652ad35 in rtems for c/src/lib/libbsp/i960


Ignore:
Timestamp:
09/19/95 14:53:29 (27 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/i960/cvme961
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i960/cvme961/console/console.c

    rb3ac6a8d r3652ad35  
    193193    outbyte( buffer[ count ] );
    194194  }
    195   return maximum;
     195
     196  rw_args->bytes_moved = maximum;
     197  return 0;
    196198}
    197199 
  • c/src/lib/libbsp/i960/cvme961/startup/bspstart.c

    rb3ac6a8d r3652ad35  
    7777    else
    7878        libc_init(0);                /* non-reentrant */
     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
    79101    /*
    80102     *  Initialize the stack bounds checker
     103     *  We can either turn it on here or from the app.
    81104     */
    82 
    83 #ifdef STACK_CHECKER_ON
     105 
    84106    Stack_check_Initialize();
    85107#endif
    86 }
     108 
     109#ifdef RTEMS_DEBUG
     110    rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
     111#endif
     112}
     113 
    87114
    88115/*
     
    153180   */
    154181
    155   Cpu_table.pretasking_hook = NULL;
    156 
    157   Cpu_table.predriver_hook = bsp_libc_init;  /* RTEMS resources available */
     182  Cpu_table.pretasking_hook = bsp_pretasking_hook;  /* init libc, etc. */
     183
     184  Cpu_table.predriver_hook = NULL;
    158185
    159186  Cpu_table.postdriver_hook = bsp_postdriver_hook;
Note: See TracChangeset for help on using the changeset viewer.