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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/ods68302/startup/bspstart.c

    rb6394ae rbd9c3d1  
    9292#endif
    9393
    94 
    95   /*
    96    *  Copy the Configuration Table .. so we can change it
    97    */
    98 
    99   BSP_Configuration = Configuration;
    100 
    101   /*
    102    * Tell libio how many fd's we want and allow it to tweak config
    103    */
    104 
    105   rtems_libio_config(&BSP_Configuration, BSP_LIBIO_MAX_FDS);
    106 
    10794  /*
    10895   *  Need to "allocate" the memory for the RTEMS Workspace and
     
    118105   */
    119106
    120   /*
    121    *  we do not use the pretasking_hook
    122    */
    123 
    124107  Cpu_table.pretasking_hook = bsp_pretasking_hook;  /* init libc, etc. */
    125 
    126   Cpu_table.predriver_hook = NULL;
    127 
    128108  Cpu_table.postdriver_hook = bsp_postdriver_hook;
    129 
    130   Cpu_table.idle_task = NULL;  /* do not override system IDLE task */
    131 
    132   Cpu_table.do_zero_of_workspace = TRUE;
    133 
    134109  Cpu_table.interrupt_stack_size = 4096;
    135 
    136   Cpu_table.extra_mpci_receive_server_stack = 0;
    137 
    138   /*
    139    *  Don't forget the other CPU Table entries.
    140    */
    141110}
Note: See TracChangeset for help on using the changeset viewer.