mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 06:08:20 +00:00
2004-11-01 Joel Sherrill <joel@OARcorp.com>
* score/include/rtems/score/object.h, score/src/object.c, score/src/objectallocatebyindex.c, score/src/objectcomparenameraw.c, score/src/objectcomparenamestring.c, score/src/objectcopynameraw.c, score/src/objectinitializeinformation.c: Fix bugs in previous commit. Now compiles.
This commit is contained in:
@@ -240,8 +240,8 @@ typedef struct {
|
||||
*/
|
||||
|
||||
#if defined(RTEMS_MULTIPROCESSING)
|
||||
SCORE_EXTERN uint32_t _Objects_Local_node;
|
||||
SCORE_EXTERN uint32_t _Objects_Maximum_nodes;
|
||||
SCORE_EXTERN uint16_t _Objects_Local_node;
|
||||
SCORE_EXTERN uint16_t _Objects_Maximum_nodes;
|
||||
#else
|
||||
#define _Objects_Local_node 1
|
||||
#define _Objects_Maximum_nodes 1
|
||||
|
||||
@@ -51,10 +51,10 @@ void _Objects_Handler_initialization(
|
||||
INTERNAL_ERROR_INVALID_NODE
|
||||
);
|
||||
|
||||
#if defined(RTEMS_MULTIPROCESSING)
|
||||
_Objects_Local_node = node;
|
||||
_Objects_Maximum_nodes = maximum_nodes;
|
||||
|
||||
#if defined(RTEMS_MULTIPROCESSING)
|
||||
_Objects_MP_Handler_initialization(
|
||||
node,
|
||||
maximum_nodes,
|
||||
|
||||
@@ -37,8 +37,8 @@
|
||||
|
||||
Objects_Control *_Objects_Allocate_by_index(
|
||||
Objects_Information *information,
|
||||
uint32_t index,
|
||||
uint32_t sizeof_control
|
||||
uint16_t index,
|
||||
uint16_t sizeof_control
|
||||
)
|
||||
{
|
||||
Objects_Control *the_object;
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
boolean _Objects_Compare_name_raw(
|
||||
void *name_1,
|
||||
void *name_2,
|
||||
uint32_t length
|
||||
uint16_t length
|
||||
)
|
||||
{
|
||||
#if 0
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
boolean _Objects_Compare_name_string(
|
||||
void *name_1,
|
||||
void *name_2,
|
||||
uint32_t length
|
||||
uint16_t length
|
||||
)
|
||||
{
|
||||
if ( !strncmp( name_1, name_2, length ) )
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
void _Objects_Copy_name_raw(
|
||||
void *source,
|
||||
void *destination,
|
||||
uint32_t length
|
||||
uint16_t length
|
||||
)
|
||||
{
|
||||
uint32_t *source_p = (uint32_t *) source;
|
||||
|
||||
@@ -47,8 +47,8 @@ void _Objects_Initialize_information(
|
||||
Objects_Information *information,
|
||||
Objects_APIs the_api,
|
||||
uint32_t the_class,
|
||||
uint32_t maximum,
|
||||
uint32_t size,
|
||||
Objects_Maximum maximum,
|
||||
uint16_t size,
|
||||
boolean is_string,
|
||||
uint32_t maximum_name_length
|
||||
#if defined(RTEMS_MULTIPROCESSING)
|
||||
|
||||
Reference in New Issue
Block a user