6a5ca4bc5af1bcacd15568883f90c00c3ec1b4c0
Fix TONGA_PAGE_SIZE value and move it to libhsakmt.h for usiing it consistently in all places that require the same alignment for the same reason. Create a generic alignment helper macro to replace some incorrect hand-coded size alignments. Move virtual address and size alignments down into aperture management functions. Alignment is a per-aperture property that is set during fmm_init_process_apertures. Doing the alignment there ensures that all allocations in the same aperture are aligned the same way. Finding objects by size and address can take the alignment into account. Also align the size of physical allocations to back aligned virtual address allocations. CPU mappings do not need to be aligned. Map anonymous pages over released memory mappings to allow the backing pages to be released, while keeping the address space reserved. Add alignment parameter to free_exec_aligned_memory_gpu to match the interface of allocate_exec_aligned_memory_cpu. It doesn't make sense to allow an alignment parameter in one but assume a specific alignment in the other. Change-Id: I74226ca6938f4948f643e5aee1d474720cd89e78
Description
No description provided
Languages
C++
67.5%
C
20.6%
Python
6.6%
CMake
3.4%
Shell
0.6%
Other
1.1%