Hello,
In Utils_memAlloc()
#if defined (A15_TARGET_OS_LINUX)
UInt32 alignsize;
alignsize = (size % SYSTEM_BUFFER_ALIGNMENT);
size = ( size + alignsize);
#endif
And SYSTEM_BUFFER_ALIGNMENT is defined as
#if defined (A15_TARGET_OS_LINUX) #define SYSTEM_BUFFER_ALIGNMENT (4096U) #else #define SYSTEM_BUFFER_ALIGNMENT (16U) #endif
When allocating UTILS_HEAPID_L2_LOCAL, actual allocation size became too big due to above code. This code should be passed when allocation is not shared region.
Best regards,
Wilson.