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


Ignore:
Timestamp:
Apr 15, 1998, 8:50:31 PM (23 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/mvme147
Files:
2 edited

Legend:

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

    rb6394ae rbd9c3d1  
    165165 */
    166166
    167 /*
    168  * How many libio files we want
    169  */
    170 
    171 #define BSP_LIBIO_MAX_FDS       20
    172 
    173167/* functions */
    174168
  • c/src/lib/libbsp/m68k/mvme147/startup/bspstart.c

    rb6394ae rbd9c3d1  
    113113
    114114  Cpu_table.pretasking_hook = bsp_pretasking_hook;  /* init libc, etc. */
    115 
    116   Cpu_table.predriver_hook = NULL;
    117 
    118115  Cpu_table.postdriver_hook = bsp_postdriver_hook;
    119 
    120   Cpu_table.idle_task = NULL;  /* do not override system IDLE task */
    121 
    122   Cpu_table.do_zero_of_workspace = TRUE;
    123 
    124116  Cpu_table.interrupt_vector_table = (m68k_isr_entry *) &M68Kvec;
    125 
    126117  Cpu_table.interrupt_stack_size = 4096;
    127 
    128   Cpu_table.extra_mpci_receive_server_stack = 0;
    129 
    130   /*
    131    *  Copy the table
    132    */
    133 
    134   BSP_Configuration = Configuration;
    135118
    136119  BSP_Configuration.work_space_start = (void *)
    137120     (RAM_END - BSP_Configuration.work_space_size);
    138121
    139   /*
    140    * Tell libio how many fd's we want and allow it to tweak config
    141    */
    142 
    143   rtems_libio_config(&BSP_Configuration, BSP_LIBIO_MAX_FDS);
    144122}
Note: See TracChangeset for help on using the changeset viewer.