Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332468 - HeapStd should support alignment
Summary: HeapStd should support alignment
Status: CLOSED FIXED
Alias: None
Product: RTSC
Classification: Technology
Component: Runtime (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Sasha Slijepcevic CLA
QA Contact:
URL:
Whiteboard: targets: 3.25.00
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-13 15:07 EST by Chris Ring CLA
Modified: 2013-04-04 17:07 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Ring CLA 2010-12-13 15:07:20 EST
There are [non-BIOS] based use cases where malloc()-based memory needs to be aligned (e.g. to allocate small chunks of memory that _might_ be given to DMAs).  HeapStd should honor the alignment param... or alternatively a new 'HeapStdAlign' module could be provided instead.

Originally filed as SDOCM00046160.

For planning purposes, I'd like to get this accepted/rejected soon so I understand the roadmap.  Implementation can come later as we have a temporary 'HeapStdAlign' workaround.  Additionally, if we could integrate HeapStdAlign into the XDC product, that would be welcome as well.
Comment 1 Chris Ring CLA 2011-08-25 19:56:23 EDT
FYI, there is a HeapStdAlign reference implementation in the osal product:
http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/osal/latest/xdoc/xdcruntime/heaps/HeapStdAlign.html
Comment 2 Dave Russo CLA 2012-01-24 13:58:51 EST
there's a HeadStdAlign in the osal, that can be used as a reference
Comment 3 Sasha Slijepcevic CLA 2012-12-05 13:37:20 EST
- fixed in xdc-z27

There will be a new test runtime.heapStd in the xdctest-c tree that can be used to test this new functionality.
Comment 4 Chris Ring CLA 2013-03-05 20:08:22 EST
Verified by [light] code inspection, and by building/running the new alignment-enabled heapStd tests natively on a Linux host using XDC 3.25.00.43_eng.