feat(tftf): new interface to get an invalid entrypoint address
TFTF test for invalid entry address in cpu hotplug, validates
for default entry address 0x0 which doesn't account for platforms
for which 0x0 is a valid address. Added function to retrieve invalid
entry address for default scenario and platform implementation to
retrieve specific custom invalid entry address.
Change-Id: I9f109acc8d0443dabd3088cb31852900e8e07853
Signed-off-by: Maheedhar Bollapalli <maheedharsai.bollapalli@amd.com>
diff --git a/plat/common/plat_common.c b/plat/common/plat_common.c
index a4195c3..da58579 100644
--- a/plat/common/plat_common.c
+++ b/plat/common/plat_common.c
@@ -25,6 +25,7 @@
#pragma weak tftf_plat_reset
#pragma weak plat_get_prot_regions
#pragma weak plat_pcie_get_info_table
+#pragma weak plat_get_invalid_addr
#if IMAGE_TFTF
@@ -154,3 +155,8 @@
{
return NULL;
}
+
+uintptr_t plat_get_invalid_addr(void)
+{
+ return (uintptr_t)0x0;
+}