Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/platform/imx8/imx8.x.in
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ SECTIONS

Comment thread
dbaluta marked this conversation as resolved.
Resolved
.system_runtime_heap (NOLOAD) : ALIGN(8)
{
. = ALIGN (32);
. = ALIGN (HEAP_BUF_ALIGNMENT);
_system_runtime_heap_start = ABSOLUTE(.);
. = . + HEAP_SYS_RUNTIME_SIZE;
_system_runtime_heap_end = ABSOLUTE(.);
Expand All @@ -477,7 +477,7 @@ SECTIONS

.buffer_heap (NOLOAD) : ALIGN(8)
{
. = ALIGN (32);
. = ALIGN (HEAP_BUF_ALIGNMENT);
_buffer_heap_start = ABSOLUTE(.);
. = . + HEAP_BUFFER_SIZE;
_buffer_heap_end = ABSOLUTE(.);
Expand Down
2 changes: 2 additions & 0 deletions src/platform/imx8/include/platform/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@
#define cache_to_uncache(address) address
#define is_uncached(address) 0

#define HEAP_BUF_ALIGNMENT XCHAL_DCACHE_LINESIZE

#if !defined(__ASSEMBLER__) && !defined(LINKER)
void platform_init_memmap(void);
#endif
Expand Down
3 changes: 3 additions & 0 deletions src/platform/imx8/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#include <sof/alloc.h>
#include <ipc/header.h>

STATIC_ASSERT(0 == (HEAP_BUF_ALIGNMENT % PLATFORM_DCACHE_ALIGN),
invalid_heap_buf_alignment);

/* Heap blocks for system runtime */
static struct block_hdr sys_rt_block64[HEAP_SYS_RT_COUNT64];
static struct block_hdr sys_rt_block512[HEAP_SYS_RT_COUNT512];
Expand Down