Changeset 3652ad35 in rtems for c/src/lib/libbsp/m68k/dmv152


Ignore:
Timestamp:
09/19/95 14:53:29 (28 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/m68k/dmv152
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/dmv152/console/console.c

    rb3ac6a8d r3652ad35  
    231231    outbyte( buffer[ count ] );
    232232  }
    233   return maximum;
     233
     234  rw_args->bytes_moved = maximum;
     235  return 0;
    234236}
    235237
  • c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c

    rb3ac6a8d r3652ad35  
    7676    else
    7777        libc_init(0);                /* non-reentrant */
    78 
     78}
     79
     80/*
     81 *  Function:   bsp_pretasking_hook
     82 *  Created:    95/03/10
     83 *
     84 *  Description:
     85 *      BSP pretasking hook.  Called just before drivers are initialized.
     86 *      Used to setup libc and install any BSP extensions.
     87 *
     88 *  NOTES:
     89 *      Must not use libc (to do io) from here, since drivers are
     90 *      not yet initialized.
     91 *
     92 */
     93 
     94void
     95bsp_pretasking_hook(void)
     96{
     97    bsp_libc_init();
     98 
     99#ifdef STACK_CHECKER_ON
    79100    /*
    80101     *  Initialize the stack bounds checker
     102     *  We can either turn it on here or from the app.
    81103     */
    82 
    83 #ifdef STACK_CHECKER_ON
     104 
    84105    Stack_check_Initialize();
    85106#endif
    86 }
     107 
     108#ifdef RTEMS_DEBUG
     109    rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
     110#endif
     111}
     112 
    87113
    88114/*
     
    159185   */
    160186
    161   Cpu_table.pretasking_hook = NULL;
    162 
    163   Cpu_table.predriver_hook = bsp_libc_init;  /* RTEMS resources available */
     187  Cpu_table.pretasking_hook = bsp_pretasking_hook;  /* init libc, etc. */
     188
     189  Cpu_table.predriver_hook = NULL;
    164190
    165191  Cpu_table.postdriver_hook = bsp_postdriver_hook;
Note: See TracChangeset for help on using the changeset viewer.