[Bug 1560] sparc64 [1/5]: _Objects_Extend_information improper alignment for 64-bit targets

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Tue Aug 31 17:14:38 UTC 2010


https://www.rtems.org/bugzilla/show_bug.cgi?id=1560

--- Comment #12 from Gedare <giddyup44 at yahoo.com> 2010-08-31 12:14:37 CDT ---
(In reply to comment #11)
> Created an attachment (id=1044)
 --> (https://www.rtems.org/bugzilla/attachment.cgi?id=1044) [details]
> Updated patch.
> 
> I realized that the allocation was now too small in case of an alignment
> adjustment.  So now the alignment adjustment is also made in computing the size
> of the allocation.

I think that I finally have a "decent" solution for this problem.  Please
review.

Also, since this potentially changes how much space is allocated from the
workspace, is there a place in confdefs.h that should be adjusted?  All I could
find was

#define _Configure_Object_RAM(_number, _size) \
  ( _Configure_From_workspace(_Configure_Max_Objects(_number) * (_size)) + \
    _Configure_From_workspace( \
      ((_Configure_Max_Objects(_number) + 1) * sizeof(Objects_Control *)) + \
      (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) \
    ) \
  )

Which does not appear to multiply the number of objects by the sizes, so I
don't think this macro reflects the code that I changed anyways.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list