diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-01-26 11:16:56 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-02-03 10:00:58 +0100 |
commit | 3bc12a8f5ade29161ca356f60f79c2283ebf2f5c (patch) | |
tree | 3539c88a81953b560dad2c6baf6a3aeb3c373c2d /cpukit/score | |
parent | Use linker set for POSIX User Threads init (diff) | |
download | rtems-3bc12a8f5ade29161ca356f60f79c2283ebf2f5c.tar.bz2 |
Delete unused API extensions
Diffstat (limited to 'cpukit/score')
-rw-r--r-- | cpukit/score/Makefile.am | 3 | ||||
-rw-r--r-- | cpukit/score/include/rtems/score/apiext.h | 89 | ||||
-rw-r--r-- | cpukit/score/preinstall.am | 4 | ||||
-rw-r--r-- | cpukit/score/src/apiext.c | 49 | ||||
-rw-r--r-- | cpukit/score/src/threaddispatch.c | 1 |
5 files changed, 1 insertions, 145 deletions
diff --git a/cpukit/score/Makefile.am b/cpukit/score/Makefile.am index 6593805c5c..8506f226c8 100644 --- a/cpukit/score/Makefile.am +++ b/cpukit/score/Makefile.am @@ -25,7 +25,6 @@ include_rtems_HEADERS += include/rtems/seterr.h include_rtems_scoredir = $(includedir)/rtems/score include_rtems_score_HEADERS = include/rtems/score/address.h -include_rtems_score_HEADERS += include/rtems/score/apiext.h include_rtems_score_HEADERS += include/rtems/score/apimutex.h include_rtems_score_HEADERS += include/rtems/score/assert.h include_rtems_score_HEADERS += include/rtems/score/atomic.h @@ -343,7 +342,7 @@ libscore_a_SOURCES += src/userextaddset.c \ src/userext.c src/userextremoveset.c src/userextiterate.c ## STD_C_FILES -libscore_a_SOURCES += src/apiext.c src/chain.c src/chainappend.c \ +libscore_a_SOURCES += src/chain.c src/chainappend.c \ src/chainextract.c src/chainget.c src/chaininsert.c \ src/chainappendempty.c src/chainprependempty.c src/chaingetempty.c \ src/chainnodecount.c \ diff --git a/cpukit/score/include/rtems/score/apiext.h b/cpukit/score/include/rtems/score/apiext.h deleted file mode 100644 index ab1329b261..0000000000 --- a/cpukit/score/include/rtems/score/apiext.h +++ /dev/null @@ -1,89 +0,0 @@ -/** - * @file rtems/score/apiext.h - * - * @brief API Extensions Handler - * - * This is the API Extensions Handler. - */ - -/* - * COPYRIGHT (c) 1989-2009. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ - -#ifndef _RTEMS_SCORE_APIEXT_H -#define _RTEMS_SCORE_APIEXT_H - -#include <rtems/score/chainimpl.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @defgroup ScoreAPIExtension API Extension Handler - * - * @ingroup Score - * - * This handler encapsulates functionality which provides mechanisms for the - * SuperCore to perform API specific actions without there beingg - * "up-references" from the SuperCore to APIs. If these referencesg - * were allowed in the implementation, the cohesion would be too high - * and adding an API would be more difficult. The SuperCore is supposed - * to be largely independent of any API. - */ -/**@{*/ - -/** - * This type defines the prototype of the Postdriver Hook. - */ -typedef void (*API_extensions_Postdriver_hook)(void); - -/** - * The control structure which defines the points at which an API - * can add an extension to the system initialization thread. - */ -typedef struct { - /** This field allows this structure to be used with the Chain Handler. */ - Chain_Node Node; - - /** - * This field is the callout invoked during RTEMS initialization after - * RTEMS data structures and device driver initialization has occurred - * but before multitasking is initiated. - * - * @note If this field is NULL, no extension is invoked. - */ - API_extensions_Postdriver_hook postdriver_hook; -} API_extensions_Control; - -/** - * @brief Add extension set to the active set. - * - * This routine adds @a the_extension to the active set of API extensions. - * - * @param[in] the_extension is the extension set to add. - */ -void _API_extensions_Add( - API_extensions_Control *the_extension -); - -/** - * @brief Execute all post-driver extensions. - * - * This routine executes all of the postdriver callouts. - */ -void _API_extensions_Run_postdriver( void ); - -/**@}*/ - -#ifdef __cplusplus -} -#endif - -#endif -/* end of include file */ diff --git a/cpukit/score/preinstall.am b/cpukit/score/preinstall.am index 1cc44daff9..0d9cadee72 100644 --- a/cpukit/score/preinstall.am +++ b/cpukit/score/preinstall.am @@ -68,10 +68,6 @@ $(PROJECT_INCLUDE)/rtems/score/address.h: include/rtems/score/address.h $(PROJEC $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/address.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/address.h -$(PROJECT_INCLUDE)/rtems/score/apiext.h: include/rtems/score/apiext.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/apiext.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/apiext.h - $(PROJECT_INCLUDE)/rtems/score/apimutex.h: include/rtems/score/apimutex.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/apimutex.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/apimutex.h diff --git a/cpukit/score/src/apiext.c b/cpukit/score/src/apiext.c deleted file mode 100644 index c91590bd13..0000000000 --- a/cpukit/score/src/apiext.c +++ /dev/null @@ -1,49 +0,0 @@ -/** - * @file - * - * @brief Holding for API Extension Functions - * - * @ingroup ScoreAPIExtension - */ - -/* - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include <rtems/score/apiext.h> - -static CHAIN_DEFINE_EMPTY( _API_extensions_List ); - -void _API_extensions_Add( - API_extensions_Control *the_extension -) -{ - _Chain_Append( &_API_extensions_List, &the_extension->Node ); -} - -void _API_extensions_Run_postdriver( void ) -{ - Chain_Node *the_node; - API_extensions_Control *the_extension; - - for ( the_node = _Chain_First( &_API_extensions_List ); - !_Chain_Is_tail( &_API_extensions_List, the_node ) ; - the_node = the_node->next ) { - - the_extension = (API_extensions_Control *) the_node; - - /* - * Currently all APIs configure this hook so it is always non-NULL. - */ - (*the_extension->postdriver_hook)(); - } -} diff --git a/cpukit/score/src/threaddispatch.c b/cpukit/score/src/threaddispatch.c index 00c2f095a2..dc3c796718 100644 --- a/cpukit/score/src/threaddispatch.c +++ b/cpukit/score/src/threaddispatch.c @@ -21,7 +21,6 @@ #endif #include <rtems/score/threaddispatch.h> -#include <rtems/score/apiext.h> #include <rtems/score/assert.h> #include <rtems/score/isr.h> #include <rtems/score/threadimpl.h> |