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


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/m68k/gen68302
Files:
2 edited

Legend:

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

    rb3ac6a8d r3652ad35  
    286286    outbyte( buffer[ count ] );
    287287  }
    288   return maximum;
     288
     289  rw_args->bytes_moved = maximum;
     290  return 0;
    289291}
    290292
  • c/src/lib/libbsp/m68k/gen68302/startup/bspstart.c

    rb3ac6a8d r3652ad35  
    8383    else
    8484        libc_init(0);                /* non-reentrant */
    85 
     85}
     86
     87/*
     88 *  Function:   bsp_pretasking_hook
     89 *  Created:    95/03/10
     90 *
     91 *  Description:
     92 *      BSP pretasking hook.  Called just before drivers are initialized.
     93 *      Used to setup libc and install any BSP extensions.
     94 *
     95 *  NOTES:
     96 *      Must not use libc (to do io) from here, since drivers are
     97 *      not yet initialized.
     98 *
     99 */
     100 
     101void
     102bsp_pretasking_hook(void)
     103{
     104    bsp_libc_init();
     105 
     106#ifdef STACK_CHECKER_ON
    86107    /*
    87108     *  Initialize the stack bounds checker
    88      */
    89 
    90 #ifdef STACK_CHECKER_ON
     109     *  We can either turn it on here or from the app.
     110     */
     111 
    91112    Stack_check_Initialize();
    92113#endif
    93 }
     114 
     115#ifdef RTEMS_DEBUG
     116    rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
     117#endif
     118}
     119 
    94120
    95121/*
     
    193219   */
    194220
    195   Cpu_table.pretasking_hook = NULL;
    196 
    197   Cpu_table.predriver_hook = bsp_libc_init;    /* RTEMS resources available */
     221  Cpu_table.pretasking_hook = bsp_pretasking_hook;  /* init libc, etc. */
     222
     223  Cpu_table.predriver_hook = NULL;
    198224
    199225  Cpu_table.postdriver_hook = bsp_postdriver_hook;
Note: See TracChangeset for help on using the changeset viewer.