From 5d36b344ae6293d543b64935f7c46b751898c188 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 2 Nov 1999 16:01:52 +0000 Subject: 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. --- c/src/exec/score/src/object.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'c/src/exec/score/src') diff --git a/c/src/exec/score/src/object.c b/c/src/exec/score/src/object.c index 38c478b27b..636bc55da6 100644 --- a/c/src/exec/score/src/object.c +++ b/c/src/exec/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 ); -- cgit v1.2.3