From efd2965abf0beaa66e918107be0b667f086d6ea4 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 2 Feb 2015 15:25:26 +0100 Subject: Filesystem: Statically initialize rtems_libio_iops --- cpukit/sapi/include/confdefs.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cpukit/sapi') diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 569f136210..65d07facf6 100644 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -92,7 +92,7 @@ extern rtems_initialization_tasks_table Initialization_tasks[]; #endif #ifndef RTEMS_SCHEDSIM -#include +#include #ifdef CONFIGURE_INIT const rtems_libio_helper rtems_libio_init_helper = @@ -153,11 +153,13 @@ const rtems_libio_helper rtems_fs_init_helper = #define CONFIGURE_LIBIO_POSIX_KEYS 1 #ifdef CONFIGURE_INIT + rtems_libio_t rtems_libio_iops[CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS]; + /** * When instantiating the configuration tables, this variable is * initialized to specify the maximum number of file descriptors. */ - const uint32_t rtems_libio_number_iops = CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS; + const uint32_t rtems_libio_number_iops = RTEMS_ARRAY_SIZE(rtems_libio_iops); #endif /** -- cgit v1.2.3