summaryrefslogtreecommitdiff
path: root/payloads/libpayload/arch
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/arch')
-rw-r--r--payloads/libpayload/arch/arm64/sysinfo.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/payloads/libpayload/arch/arm64/sysinfo.c b/payloads/libpayload/arch/arm64/sysinfo.c
index 6d204e2dc7..28d3c4be55 100644
--- a/payloads/libpayload/arch/arm64/sysinfo.c
+++ b/payloads/libpayload/arch/arm64/sysinfo.c
@@ -62,3 +62,10 @@ int lib_get_sysinfo(void)
return ret;
}
+
+void lib_sysinfo_get_memranges(struct memrange **ranges,
+ uint64_t *nranges)
+{
+ *ranges = &lib_sysinfo.memrange[0];
+ *nranges = lib_sysinfo.n_memranges;
+}