Skip to content

Commit 3d461ee

Browse files
mm: add application access to unused_l2_start_aligned marker
this marker is an address of the very first byte not used by the linker, with alignment to cacheline Signed-off-by: Marcin Szkudlinski <[email protected]>
1 parent 51d3c7a commit 3d461ee

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

drivers/mm/mm_drv_intel_adsp_mtl_tlb.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ SYS_MEM_BLOCKS_DEFINE_WITH_EXT_BUF(
6262
L2_SRAM_PAGES_NUM,
6363
(uint8_t *) L2_SRAM_BASE);
6464

65+
uintptr_t adsp_mm_get_unused_l2_start_aligned(void)
66+
{
67+
return UNUSED_L2_START_ALIGNED;
68+
}
69+
6570
/**
6671
* Calculate the index to the TLB table.
6772
*

include/zephyr/drivers/mm/mm_drv_intel_adsp_mtl_tlb.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ typedef uint32_t (*mm_get_storage_size)(void);
4444
*/
4545
void adsp_mm_restore_context(void *storage_buffer);
4646

47+
/*
48+
* This procedure return a pointer to a first unused address in L2 virtual memory
49+
*/
50+
uintptr_t adsp_mm_get_unused_l2_start_aligned(void);
51+
4752
struct intel_adsp_tlb_api {
4853
mm_save_context save_context;
4954
mm_get_storage_size get_storage_size;

0 commit comments

Comments
 (0)