Changeset efd2965a in rtems


Ignore:
Timestamp:
Feb 2, 2015, 2:25:26 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
4c14ace6
Parents:
ec0f2df
git-author:
Sebastian Huber <sebastian.huber@…> (02/02/15 14:25:26)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/04/15 13:03:49)
Message:

Filesystem: Statically initialize rtems_libio_iops

Files:
4 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/include/rtems/libio_.h

    rec0f2df refd2965a  
    6666
    6767extern const uint32_t rtems_libio_number_iops;
    68 extern rtems_libio_t  *rtems_libio_iops;
     68extern rtems_libio_t rtems_libio_iops[];
    6969extern rtems_libio_t *rtems_libio_iop_freelist;
    7070
  • cpukit/libcsupport/src/libio_init.c

    rec0f2df refd2965a  
    3939
    4040rtems_id           rtems_libio_semaphore;
    41 rtems_libio_t     *rtems_libio_iops;
    4241rtems_libio_t     *rtems_libio_iop_freelist;
    4342
     
    5150    if (rtems_libio_number_iops > 0)
    5251    {
    53         rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
    54                                                     sizeof(rtems_libio_t));
    55         if (rtems_libio_iops == NULL)
    56             rtems_fatal_error_occurred(RTEMS_NO_MEMORY);
    57 
    58         iop = rtems_libio_iop_freelist = rtems_libio_iops;
     52        iop = rtems_libio_iop_freelist = &rtems_libio_iops[0];
    5953        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)
    6054          iop->data1 = iop + 1;
  • cpukit/sapi/include/confdefs.h

    rec0f2df refd2965a  
    9393
    9494#ifndef RTEMS_SCHEDSIM
    95 #include <rtems/libio.h>
     95#include <rtems/libio_.h>
    9696
    9797#ifdef CONFIGURE_INIT
     
    154154
    155155#ifdef CONFIGURE_INIT
     156  rtems_libio_t rtems_libio_iops[CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS];
     157
    156158  /**
    157159   * When instantiating the configuration tables, this variable is
    158160   * initialized to specify the maximum number of file descriptors.
    159161   */
    160   const uint32_t rtems_libio_number_iops = CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS;
     162  const uint32_t rtems_libio_number_iops = RTEMS_ARRAY_SIZE(rtems_libio_iops);
    161163#endif
    162164
  • testsuites/sptests/Makefile.am

    rec0f2df refd2965a  
    1919    spfatal08 spfatal09 spfatal10 spfatal11 spfatal12 spfatal13 spfatal14 \
    2020    spfatal15 spfatal16 spfatal17 spfatal18 spfatal19 spfatal20 \
    21     spfatal22 spfatal24 spfatal25 spfatal27\
     21    spfatal24 spfatal25 spfatal27\
    2222    spfifo01 spfifo02 spfifo03 spfifo04 spfifo05 \
    2323    spfreechain01 \
  • testsuites/sptests/configure.ac

    rec0f2df refd2965a  
    176176spfatal19/Makefile
    177177spfatal20/Makefile
    178 spfatal22/Makefile
    179178spfatal24/Makefile
    180179spfatal25/Makefile
Note: See TracChangeset for help on using the changeset viewer.