summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include/arm64/arch
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/include/arm64/arch')
-rw-r--r--payloads/libpayload/include/arm64/arch/mmu.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/payloads/libpayload/include/arm64/arch/mmu.h b/payloads/libpayload/include/arm64/arch/mmu.h
index 5a1dd98a59..2b1e9e120c 100644
--- a/payloads/libpayload/include/arm64/arch/mmu.h
+++ b/payloads/libpayload/include/arm64/arch/mmu.h
@@ -194,4 +194,12 @@ struct mmu_memrange* mmu_init_ranges_from_sysinfo(struct memrange *cb_ranges,
*/
void mmu_presysinfo_memory_used(uint64_t base, uint64_t size);
void mmu_presysinfo_enable(void);
+
+/*
+ * Functions for exposing the used memory ranges to payloads. The ranges contain
+ * all used memory ranges that are actually used by payload. i.e. _start -> _end
+ * in linker script, the coreboot tables and framebuffer/DMA allocated in MMU
+ * initialization.
+ */
+const struct mmu_ranges *mmu_get_used_ranges(void);
#endif // __ARCH_ARM64_MMU_H__