Changeset bd9c3d1 in rtems for c/src/lib/libbsp/m68k/mvme162


Ignore:
Timestamp:
04/15/98 20:50:31 (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
c0daf807
Parents:
b6394ae
Message:

Numerous changes which in total greatly reduced the amount of source
code in each BSP's bspstart.c. These changes were:

+ confdefs.h now knows libio's semaphore requirements
+ shared/main.c now copies Configuration to BSP_Configuration
+ shared/main.c fills in the Cpu_table with default values

This removed the need for rtems_libio_config() and the constant
BSP_LIBIO_MAX_FDS in every BSP. Plus now the maximum number of open
files can now be set on the gcc command line.

Location:
c/src/lib/libbsp/m68k/mvme162
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/mvme162/include/bsp.h

    rb6394ae rbd9c3d1  
    271271 */
    272272
    273 /*
    274  * How many libio files we want
    275  */
    276 
    277 #define BSP_LIBIO_MAX_FDS       20
    278 
    279273/* miscellaneous stuff assumed to exist */
    280274
  • c/src/lib/libbsp/m68k/mvme162/startup/bspstart.c

    rb6394ae rbd9c3d1  
    130130
    131131  Cpu_table.pretasking_hook = bsp_pretasking_hook;  /* init libc, etc. */
    132 
    133   Cpu_table.predriver_hook = NULL;
    134 
    135132  Cpu_table.postdriver_hook = bsp_postdriver_hook;
    136 
    137   Cpu_table.idle_task = NULL;  /* do not override system IDLE task */
    138 
    139   Cpu_table.do_zero_of_workspace = TRUE;
    140 
    141133  Cpu_table.interrupt_vector_table = (m68k_isr_entry *) &M68Kvec;
    142 
    143134  Cpu_table.interrupt_stack_size = 4096;
    144 
    145   Cpu_table.extra_mpci_receive_server_stack = 0;
    146 
    147   /*
    148    *  Copy the table
    149    */
    150 
    151   BSP_Configuration = Configuration;
    152 
    153   /*
    154    * Tell libio how many fd's we want and allow it to tweak config
    155    */
    156 
    157   rtems_libio_config(&BSP_Configuration, BSP_LIBIO_MAX_FDS);
    158135
    159136  BSP_Configuration.work_space_start = (void *)
Note: See TracChangeset for help on using the changeset viewer.