Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332468

Summary: HeapStd should support alignment
Product: [Technology] RTSC Reporter: Chris Ring <cring>
Component: RuntimeAssignee: Sasha Slijepcevic <sascha>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: d-russo, dfriedland
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: targets: 3.25.00

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.