refactor: manifest data allocation from page pool
As follow up to [1] allocate the (large) struct manifest object used
during manifest parsing from the page pool and releases it when manifest
parsing completes.
Clear manifest data memory after allocating and before de-allocating, to
prevent undesired data leakage.
[1] https://review.trustedfirmware.org/c/hafnium/hafnium/+/15741/10/src/init.c#45
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
Change-Id: Iff9d2b9f0fd7ac234d18621ee78c56f4cb36f500
diff --git a/inc/hf/manifest.h b/inc/hf/manifest.h
index 60c6f76..d2f9428 100644
--- a/inc/hf/manifest.h
+++ b/inc/hf/manifest.h
@@ -234,7 +234,7 @@
};
enum manifest_return_code manifest_init(struct mm_stage1_locked stage1_locked,
- struct manifest *manifest,
+ struct manifest **manifest,
struct memiter *manifest_fdt,
struct mpool *ppool);
void manifest_deinit(struct mpool *ppool);