summaryrefslogtreecommitdiffstats
path: root/cpukit/score
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-11-29 21:55:18 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-11-29 21:55:18 +0000
commitb0bd1b697c5193ade774f8ab808d8e032c780f8c (patch)
treee9b4f68224ee1fb92329252beb71da6651867d25 /cpukit/score
parent2011-11-28 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-b0bd1b697c5193ade774f8ab808d8e032c780f8c.tar.bz2
2011-11-29 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1967/cpukit * score/include/rtems/score/object.h, score/src/objectinitializeinformation.c: Remove OBJECTS_NAME_ALIGNMENT and uses.
Diffstat (limited to 'cpukit/score')
-rw-r--r--cpukit/score/include/rtems/score/object.h7
-rw-r--r--cpukit/score/src/objectinitializeinformation.c22
2 files changed, 8 insertions, 21 deletions
diff --git a/cpukit/score/include/rtems/score/object.h b/cpukit/score/include/rtems/score/object.h
index 703050feaa..4f2147cd99 100644
--- a/cpukit/score/include/rtems/score/object.h
+++ b/cpukit/score/include/rtems/score/object.h
@@ -65,13 +65,6 @@ typedef union {
} Objects_Name;
/**
- * Space for object names is allocated in multiples of this.
- *
- * NOTE: Must be a power of 2. Matches the name manipulation routines.
- */
-#define OBJECTS_NAME_ALIGNMENT sizeof( uint32_t )
-
-/**
* Functions which compare names are prototyped like this.
*/
typedef bool (*Objects_Name_comparators)(
diff --git a/cpukit/score/src/objectinitializeinformation.c b/cpukit/score/src/objectinitializeinformation.c
index 882274a18d..0498afa51e 100644
--- a/cpukit/score/src/objectinitializeinformation.c
+++ b/cpukit/score/src/objectinitializeinformation.c
@@ -128,18 +128,12 @@ void _Objects_Initialize_information(
/*
* Calculate the maximum name length
*
- * NOTE: Always 4 bytes long in Class so aligned. It is POSIX name
- * lengths that may be an odd number of bytes.
+ * NOTE: Either 4 bytes for Classic API names or an arbitrary
+ * number for POSIX names which are strings that may be
+ * an odd number of bytes.
*/
- name_length = maximum_name_length;
- #if defined(RTEMS_POSIX_API)
- if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )
- name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &
- ~(OBJECTS_NAME_ALIGNMENT-1);
- #endif
-
- information->name_length = name_length;
+ information->name_length = maximum_name_length;
_Chain_Initialize_empty( &information->Inactive );
@@ -164,12 +158,12 @@ void _Objects_Initialize_information(
if ( (supports_global == true) && _System_state_Is_multiprocessing ) {
information->global_table =
- (Chain_Control *) _Workspace_Allocate_or_fatal_error(
- (_Objects_Maximum_nodes + 1) * sizeof(Chain_Control)
- );
+ (Chain_Control *) _Workspace_Allocate_or_fatal_error(
+ (_Objects_Maximum_nodes + 1) * sizeof(Chain_Control)
+ );
for ( index=1; index <= _Objects_Maximum_nodes ; index++ )
- _Chain_Initialize_empty( &information->global_table[ index ] );
+ _Chain_Initialize_empty( &information->global_table[ index ] );
}
else
information->global_table = NULL;