Changeset 5d36b344 in rtems


Ignore:
Timestamp:
Nov 2, 1999, 4:01:52 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
c42bd452
Parents:
32441ab7
Message:

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.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/src/object.c

    r32441ab7 r5d36b344  
    282282  }
    283283 
    284   name_area = (Objects_Name *) information->object_blocks[ block ];
     284  name_area = (Objects_Name *) _Addresses_Add_offset(
     285    information->object_blocks[ block ],
     286    (information->allocation_size * information->size)
     287  );
    285288  information->name_table[ block ] = name_area;
    286289
     
    291294  _Chain_Initialize(
    292295    &Inactive,
    293     _Addresses_Add_offset( information->object_blocks[ block ],
    294                            (information->allocation_size * information->name_length) ),
     296    information->object_blocks[ block ],
    295297    information->allocation_size,
    296298    information->size
  • cpukit/score/src/object.c

    r32441ab7 r5d36b344  
    282282  }
    283283 
    284   name_area = (Objects_Name *) information->object_blocks[ block ];
     284  name_area = (Objects_Name *) _Addresses_Add_offset(
     285    information->object_blocks[ block ],
     286    (information->allocation_size * information->size)
     287  );
    285288  information->name_table[ block ] = name_area;
    286289
     
    291294  _Chain_Initialize(
    292295    &Inactive,
    293     _Addresses_Add_offset( information->object_blocks[ block ],
    294                            (information->allocation_size * information->name_length) ),
     296    information->object_blocks[ block ],
    295297    information->allocation_size,
    296298    information->size
Note: See TracChangeset for help on using the changeset viewer.