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


Ignore:
Timestamp:
Sep 19, 1995, 2:53:29 PM (25 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/i386
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/force386/console/console.c

    rb3ac6a8d r3652ad35  
    267267    outbyte( buffer[ count ] );
    268268  }
    269   return maximum;
     269
     270  rw_args->bytes_moved = maximum;
     271  return 0;
    270272}
    271273 
  • c/src/lib/libbsp/i386/force386/startup/bspstart.c

    rb3ac6a8d r3652ad35  
    7575    else
    7676        libc_init(0);                /* non-reentrant */
    77 
     77}
     78
     79/*
     80 *  Function:   bsp_pretasking_hook
     81 *  Created:    95/03/10
     82 *
     83 *  Description:
     84 *      BSP pretasking hook.  Called just before drivers are initialized.
     85 *      Used to setup libc and install any BSP extensions.
     86 *
     87 *  NOTES:
     88 *      Must not use libc (to do io) from here, since drivers are
     89 *      not yet initialized.
     90 *
     91 */
     92 
     93void
     94bsp_pretasking_hook(void)
     95{
     96    bsp_libc_init();
     97 
     98#ifdef STACK_CHECKER_ON
    7899    /*
    79100     *  Initialize the stack bounds checker
     101     *  We can either turn it on here or from the app.
    80102     */
    81 
    82 #ifdef STACK_CHECKER_ON
     103 
    83104    Stack_check_Initialize();
    84105#endif
    85 
    86 }
     106 
     107#ifdef RTEMS_DEBUG
     108    rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
     109#endif
     110}
     111 
    87112
    88113/*
     
    136161   */
    137162
    138   Cpu_table.pretasking_hook = NULL;
    139 
    140   Cpu_table.predriver_hook = bsp_libc_init;  /* RTEMS resources available */
     163  Cpu_table.pretasking_hook = bsp_pretasking_hook;  /* init libc, etc. */
     164
     165  Cpu_table.predriver_hook = NULL;
    141166
    142167  Cpu_table.postdriver_hook = bsp_postdriver_hook;
  • c/src/lib/libbsp/i386/go32/console/console.c

    rb3ac6a8d r3652ad35  
    238238    outbyte( buffer[ count ] );
    239239  }
    240   return maximum;
     240
     241  rw_args->bytes_moved = maximum;
     242  return 0;
    241243}
    242244 
  • c/src/lib/libbsp/i386/go32/startup/bspstart.c

    rb3ac6a8d r3652ad35  
    8282    else
    8383        libc_init(0);                /* non-reentrant */
    84 
     84}
     85 
     86/*
     87 *  Function:   bsp_pretasking_hook
     88 *  Created:    95/03/10
     89 *
     90 *  Description:
     91 *      BSP pretasking hook.  Called just before drivers are initialized.
     92 *      Used to setup libc and install any BSP extensions.
     93 *
     94 *  NOTES:
     95 *      Must not use libc (to do io) from here, since drivers are
     96 *      not yet initialized.
     97 *
     98 */
     99 
     100void
     101bsp_pretasking_hook(void)
     102{
     103    bsp_libc_init();
     104 
     105#ifdef STACK_CHECKER_ON
    85106    /*
    86107     *  Initialize the stack bounds checker
     108     *  We can either turn it on here or from the app.
    87109     */
    88 
    89 #ifdef STACK_CHECKER_ON
     110 
    90111    Stack_check_Initialize();
    91112#endif
    92 
    93 }
    94  
     113 
     114#ifdef RTEMS_DEBUG
     115    rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
     116#endif
     117}
     118 
     119
    95120/*
    96121 * After drivers are setup, register some "filenames"
     
    139164    rtems_progname = "RTEMS";
    140165
    141   Cpu_table.pretasking_hook     = NULL;
    142   Cpu_table.predriver_hook = bsp_libc_init;  /* RTEMS resources available */
     166  Cpu_table.pretasking_hook = bsp_pretasking_hook;  /* init libc, etc. */
     167  Cpu_table.predriver_hook = NULL;
    143168  Cpu_table.postdriver_hook = bsp_postdriver_hook;
    144169  Cpu_table.idle_task = NULL;  /* do not override system IDLE task */
Note: See TracChangeset for help on using the changeset viewer.