summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/object.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-02 16:01:52 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-02 16:01:52 +0000
commit5d36b344ae6293d543b64935f7c46b751898c188 (patch)
tree02f88ba5f5f24af41da8f38ee59f34bb679690c9 /cpukit/score/src/object.c
parentAdded a comment to indicate that if a task blocked on a priority (diff)
downloadrtems-5d36b344ae6293d543b64935f7c46b751898c188.tar.bz2
Fixed bug which resulted in misaligned object control structures
being allocated. This bug manifested itself on the SPARC since it uses ldd/std in its context save/restore routines.
Diffstat (limited to 'cpukit/score/src/object.c')
-rw-r--r--cpukit/score/src/object.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/cpukit/score/src/object.c b/cpukit/score/src/object.c
index 38c478b27b..636bc55da6 100644
--- a/cpukit/score/src/object.c
+++ b/cpukit/score/src/object.c
@@ -281,7 +281,10 @@ void _Objects_Extend_information(
);
}
- name_area = (Objects_Name *) information->object_blocks[ block ];
+ name_area = (Objects_Name *) _Addresses_Add_offset(
+ information->object_blocks[ block ],
+ (information->allocation_size * information->size)
+ );
information->name_table[ block ] = name_area;
/*
@@ -290,8 +293,7 @@ void _Objects_Extend_information(
_Chain_Initialize(
&Inactive,
- _Addresses_Add_offset( information->object_blocks[ block ],
- (information->allocation_size * information->name_length) ),
+ information->object_blocks[ block ],
information->allocation_size,
information->size
);