summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2010-06-17 15:29:01 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2010-06-17 15:29:01 +0000
commitb77d6e115acc20b55be63fe197a46b6345785167 (patch)
tree1cfa401437c70d5962ceaf8a00ef97bfcc909bfc
parent2010-06-17 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-b77d6e115acc20b55be63fe197a46b6345785167.tar.bz2
Remove.
-rw-r--r--cpukit/aclocal/check-itron.m422
-rw-r--r--cpukit/aclocal/enable-itron.m412
-rw-r--r--cpukit/score/src/objectallocatebyindex.c78
-rw-r--r--cpukit/score/src/objectgetbyindex.c80
-rw-r--r--cpukit/score/src/threadrotatequeue.c90
5 files changed, 0 insertions, 282 deletions
diff --git a/cpukit/aclocal/check-itron.m4 b/cpukit/aclocal/check-itron.m4
deleted file mode 100644
index 0abccd27c4..0000000000
--- a/cpukit/aclocal/check-itron.m4
+++ /dev/null
@@ -1,22 +0,0 @@
-dnl $Id$
-dnl
-AC_DEFUN([RTEMS_CHECK_ITRON_API],
-[dnl
-AC_REQUIRE([RTEMS_ENABLE_ITRON])dnl
-
-AC_CACHE_CHECK([whether CPU supports libitron],
- rtems_cv_HAS_ITRON_API,
- [dnl
- AS_IF([test "${enable_itron}" = "yes"],[
-# suppress itron if one these types is not available
- AS_IF([test x"$ac_cv_type_int8_t" = xyes \
- && test x"$ac_cv_type_uint8_t" = xyes \
- && test x"$ac_cv_type_int16_t" = xyes \
- && test x"$ac_cv_type_uint16_t" = xyes],
- [rtems_cv_HAS_ITRON_API=yes],
- [rtems_cv_HAS_ITRON_API=no])
- ],[
- rtems_cv_HAS_ITRON_API="disabled"
- ])
- ])
-])
diff --git a/cpukit/aclocal/enable-itron.m4 b/cpukit/aclocal/enable-itron.m4
deleted file mode 100644
index 2f2c652922..0000000000
--- a/cpukit/aclocal/enable-itron.m4
+++ /dev/null
@@ -1,12 +0,0 @@
-dnl $Id$
-
-AC_DEFUN([RTEMS_ENABLE_ITRON],
-[
-AC_ARG_ENABLE([itron],
-AS_HELP_STRING([--enable-itron],[enable itron interface (DEPRECATED)]),
-[case "${enableval}" in
- yes) enable_itron=yes ;;
- no) enable_itron=no ;;
- *) AC_MSG_ERROR(bad value ${enableval} for enable-itron option) ;;
-esac],[enable_itron=no])
-])
diff --git a/cpukit/score/src/objectallocatebyindex.c b/cpukit/score/src/objectallocatebyindex.c
deleted file mode 100644
index 32a2c15e14..0000000000
--- a/cpukit/score/src/objectallocatebyindex.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * Object Handler
- *
- *
- * 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.com/license/LICENSE.
- *
- * $Id$
- */
-
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <rtems/system.h>
-#include <rtems/score/address.h>
-#include <rtems/score/chain.h>
-#include <rtems/score/object.h>
-#if defined(RTEMS_MULTIPROCESSING)
-#include <rtems/score/objectmp.h>
-#endif
-#include <rtems/score/thread.h>
-#include <rtems/score/wkspace.h>
-#include <rtems/score/sysstate.h>
-#include <rtems/score/isr.h>
-
-/*PAGE
- *
- * _Objects_Allocate_by_index
- *
- * DESCRIPTION:
- *
- * This function allocates the object control block
- * specified by the index from the inactive chain of
- * free object control blocks.
- */
-
-Objects_Control *_Objects_Allocate_by_index(
- Objects_Information *information,
- int the_index,
- uint16_t sizeof_control
-)
-{
- Objects_Control *the_object;
-
- if ( the_index > 0 && information->maximum >= the_index ) {
- the_object = information->local_table[ the_index ];
- if ( the_object )
- return NULL;
-
- /* XXX
- * This whole section of code needs to be evaluated for unlimited objects.
- * + The 0 should be dealt with more properly so we can autoextend.
- * + The pointer arithmetic is probably too expensive but is likely
- * necessary especially on targets with 16 bit offset limits.
- * + etc.
- */
-
- the_object = (Objects_Control *) _Addresses_Add_offset(
- information->object_blocks[ 0 ],
- (sizeof_control * (the_index - 1))
- );
- _Chain_Extract( &the_object->Node );
-
- return the_object;
- }
-
- /*
- * Autoextend will have to be thought out as it applies
- * to user assigned indices.
- */
-
- return NULL;
-}
diff --git a/cpukit/score/src/objectgetbyindex.c b/cpukit/score/src/objectgetbyindex.c
deleted file mode 100644
index 61c74ad75e..0000000000
--- a/cpukit/score/src/objectgetbyindex.c
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- * Object Handler
- *
- *
- * 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.com/license/LICENSE.
- *
- * $Id$
- */
-
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <rtems/system.h>
-#include <rtems/score/address.h>
-#include <rtems/score/chain.h>
-#include <rtems/score/object.h>
-#if defined(RTEMS_MULTIPROCESSING)
-#include <rtems/score/objectmp.h>
-#endif
-#include <rtems/score/thread.h>
-#include <rtems/score/wkspace.h>
-#include <rtems/score/sysstate.h>
-#include <rtems/score/isr.h>
-
-/*PAGE
- *
- * _Objects_Get_by_index
- *
- * This routine sets the object pointer for the given
- * object id based on the given object information structure.
- *
- * Input parameters:
- * information - pointer to entry in table for this class
- * index - object index to check for
- * location - address of where to store the location
- *
- * Output parameters:
- * returns - address of object if local
- * location - one of the following:
- * OBJECTS_ERROR - invalid object ID
- * OBJECTS_REMOTE - remote object
- * OBJECTS_LOCAL - local object
- */
-
-Objects_Control *_Objects_Get_by_index(
- Objects_Information *information,
- Objects_Id id,
- Objects_Locations *location
-)
-{
- Objects_Control *the_object;
- uint16_t index;
-
- index = _Objects_Get_index( id );
-
- if ( information->maximum >= index ) {
- _Thread_Disable_dispatch();
- the_object = information->local_table[ index ];
- if ( the_object ) {
- *location = OBJECTS_LOCAL;
- return( the_object );
- }
- _Thread_Enable_dispatch();
- *location = OBJECTS_ERROR;
- return( NULL );
- }
-
- /*
- * With just an index, you can't access a remote object.
- */
-
- *location = OBJECTS_ERROR;
- return NULL;
-}
diff --git a/cpukit/score/src/threadrotatequeue.c b/cpukit/score/src/threadrotatequeue.c
deleted file mode 100644
index 899f5c01b9..0000000000
--- a/cpukit/score/src/threadrotatequeue.c
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- * Thread Handler
- *
- *
- * COPYRIGHT (c) 1989-1999.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in found in the file LICENSE in this distribution or at
- * http://www.rtems.com/license/LICENSE.
- *
- * $Id$
- */
-
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <rtems/system.h>
-#include <rtems/score/apiext.h>
-#include <rtems/score/context.h>
-#include <rtems/score/interr.h>
-#include <rtems/score/isr.h>
-#include <rtems/score/object.h>
-#include <rtems/score/priority.h>
-#include <rtems/score/states.h>
-#include <rtems/score/sysstate.h>
-#include <rtems/score/thread.h>
-#include <rtems/score/threadq.h>
-#include <rtems/score/userext.h>
-#include <rtems/score/wkspace.h>
-
-/*PAGE
- *
- * _Thread_Rotate_Ready_Queue
- *
- * This kernel routine will rotate the ready queue.
- * remove the running THREAD from the ready chain
- * and place it immediatly at the rear of this chain. Reset timeslice
- * and yield the processor functions both use this routine, therefore if
- * reset is true and this is the only thread on the chain then the
- * timeslice counter is reset. The heir THREAD will be updated if the
- * running is also the currently the heir.
- *
- * Input parameters:
- * Priority of the queue we wish to modify.
- *
- * Output parameters: NONE
- *
- * INTERRUPT LATENCY:
- * ready chain
- * select heir
- */
-
-void _Thread_Rotate_Ready_Queue(
- Priority_Control priority
-)
-{
- ISR_Level level;
- Thread_Control *executing;
- Chain_Control *ready;
- Chain_Node *node;
-
- ready = &_Thread_Ready_chain[ priority ];
- executing = _Thread_Executing;
-
- if ( ready == executing->ready ) {
- _Thread_Yield_processor();
- return;
- }
-
- _ISR_Disable( level );
-
- if ( !_Chain_Is_empty( ready ) ) {
- if (!_Chain_Has_only_one_node( ready ) ) {
- node = _Chain_Get_first_unprotected( ready );
- _Chain_Append_unprotected( ready, node );
- }
- }
-
- _ISR_Flash( level );
-
- if ( _Thread_Heir->ready == ready )
- _Thread_Heir = (Thread_Control *) ready->first;
-
- if ( executing != _Thread_Heir )
- _Context_Switch_necessary = true;
-
- _ISR_Enable( level );
-}