feat(boot): writing boot info to partition's memory
Implemented writing VM's boot info:
- Setting boot info header and descriptors array.
- Copying info if it has been listed in the partition's manifest.
- Providing the boot info memory address to partition in the GP register
specified in the partition's manifest.
Change-Id: I39248811289c6b8c4f4cac6080c600ce73cad993
Signed-off-by: J-Alves <joao.alves@arm.com>
diff --git a/inc/hf/sp_pkg.h b/inc/hf/sp_pkg.h
index 5e5f545..0ae763c 100644
--- a/inc/hf/sp_pkg.h
+++ b/inc/hf/sp_pkg.h
@@ -41,6 +41,12 @@
return (size_t)(sp_pkg->img_offset + sp_pkg->img_size);
}
+/** Get the size of the boot information descriptors section. */
+static inline size_t sp_pkg_get_boot_info_size(struct sp_pkg_header *sp_pkg)
+{
+ return sp_pkg->pm_offset;
+}
+
bool sp_pkg_init(struct mm_stage1_locked stage1_locked, paddr_t pkg_start,
struct sp_pkg_header *header, struct mpool *ppool);