From 8f3419bd880f46e9c072d535d67dd98f5767ee7c Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 20 Feb 2020 11:39:30 +0100 Subject: config: Add Remove all comments and copyrightable content from the moved content. Use BSD-2-Clause license for new file. Update #3053. Update #3875. --- cpukit/include/rtems/confdefs.h | 104 +--------------------------------------- 1 file changed, 1 insertion(+), 103 deletions(-) (limited to 'cpukit/include/rtems/confdefs.h') diff --git a/cpukit/include/rtems/confdefs.h b/cpukit/include/rtems/confdefs.h index 0e5038cf92..b0783ae225 100644 --- a/cpukit/include/rtems/confdefs.h +++ b/cpukit/include/rtems/confdefs.h @@ -26,12 +26,10 @@ * Include the executive's configuration */ #include -#include #include #include #include #include -#include #include #include #include @@ -52,6 +50,7 @@ #include #include #include +#include #include #include #include @@ -573,69 +572,8 @@ extern "C" { #define CONFIGURE_MAXIMUM_BARRIERS 0 #endif -#ifndef CONFIGURE_MAXIMUM_USER_EXTENSIONS - /** - * This configuration parameter specifies the maximum number of - * Classic API User Extensions. - */ - #define CONFIGURE_MAXIMUM_USER_EXTENSIONS 0 -#endif - /**@}*/ /* end of Classic API Configuration */ -/* - * Initial Extension Set - */ - -#ifdef CONFIGURE_INIT -#if CONFIGURE_RECORD_PER_PROCESSOR_ITEMS > 0 -#include -#endif -#ifdef CONFIGURE_STACK_CHECKER_ENABLED -#include -#endif - -#include - -#if defined(BSP_INITIAL_EXTENSION) || \ - defined(CONFIGURE_INITIAL_EXTENSIONS) || \ - defined(CONFIGURE_STACK_CHECKER_ENABLED) || \ - (defined(RTEMS_NEWLIB) && !defined(CONFIGURE_DISABLE_NEWLIB_REENTRANCY)) - const User_extensions_Table _User_extensions_Initial_extensions[] = { - #if CONFIGURE_RECORD_PER_PROCESSOR_ITEMS > 0 && \ - defined(CONFIGURE_RECORD_EXTENSIONS_ENABLED) - RECORD_EXTENSION, - #endif - #if !defined(CONFIGURE_DISABLE_NEWLIB_REENTRANCY) - RTEMS_NEWLIB_EXTENSION, - #endif - #if defined(CONFIGURE_STACK_CHECKER_ENABLED) - RTEMS_STACK_CHECKER_EXTENSION, - #endif - #if defined(CONFIGURE_INITIAL_EXTENSIONS) - CONFIGURE_INITIAL_EXTENSIONS, - #endif - #if defined(BSP_INITIAL_EXTENSION) - BSP_INITIAL_EXTENSION - #endif - }; - - const size_t _User_extensions_Initial_count = - RTEMS_ARRAY_SIZE( _User_extensions_Initial_extensions ); - - User_extensions_Switch_control _User_extensions_Initial_switch_controls[ - RTEMS_ARRAY_SIZE( _User_extensions_Initial_extensions ) - ]; - - RTEMS_SYSINIT_ITEM( - _User_extensions_Handler_initialization, - RTEMS_SYSINIT_INITIAL_EXTENSIONS, - RTEMS_SYSINIT_ORDER_MIDDLE - ); -#endif - -#endif - /** * @defgroup ConfigurationPOSIXAPI POSIX API Configuration Parameters * @@ -1099,10 +1037,6 @@ extern "C" { ); #endif - #if CONFIGURE_MAXIMUM_USER_EXTENSIONS > 0 - EXTENSION_INFORMATION_DEFINE( CONFIGURE_MAXIMUM_USER_EXTENSIONS ); - #endif - #if CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS > 0 POSIX_Keys_Key_value_pair _POSIX_Keys_Key_value_pairs[ rtems_resource_maximum_per_allocation( @@ -1220,42 +1154,6 @@ extern "C" { RTEMS_SYSINIT_ORDER_MIDDLE ); #endif - - #if CONFIGURE_RECORD_PER_PROCESSOR_ITEMS > 0 - #if (CONFIGURE_RECORD_PER_PROCESSOR_ITEMS & (CONFIGURE_RECORD_PER_PROCESSOR_ITEMS - 1)) != 0 - #error "CONFIGURE_RECORD_PER_PROCESSOR_ITEMS must be a power of two" - #endif - - #if CONFIGURE_RECORD_PER_PROCESSOR_ITEMS < 16 - #error "CONFIGURE_RECORD_PER_PROCESSOR_ITEMS must be at least 16" - #endif - - typedef struct { - Record_Control Control; - rtems_record_item Items[ CONFIGURE_RECORD_PER_PROCESSOR_ITEMS ]; - } Record_Configured_control; - - static Record_Configured_control _Record_Controls[ _CONFIGURE_MAXIMUM_PROCESSORS ]; - - const Record_Configuration _Record_Configuration = { - CONFIGURE_RECORD_PER_PROCESSOR_ITEMS, - &_Record_Controls[ 0 ].Control - }; - - RTEMS_SYSINIT_ITEM( - _Record_Initialize, - RTEMS_SYSINIT_RECORD, - RTEMS_SYSINIT_ORDER_MIDDLE - ); - #endif - - #ifdef CONFIGURE_VERBOSE_SYSTEM_INITIALIZATION - RTEMS_SYSINIT_ITEM( - _Sysinit_Verbose, - RTEMS_SYSINIT_RECORD, - RTEMS_SYSINIT_ORDER_LAST - ); - #endif #endif /* -- cgit v1.2.3