aboutsummaryrefslogtreecommitdiff
path: root/bl2/include/boot_hal.h
diff options
context:
space:
mode:
authorMichel Jaouen <michel.jaouen@st.com>2020-06-17 18:58:00 +0200
committerMáté Tóth-Pál <Mate.Toth-Pal@arm.com>2020-06-22 07:03:53 +0000
commit3ecd6221ccecfb0279c1a7ddb94ab917e3e0dc09 (patch)
treeecc24906b2082cfdb0307f9401497fcbda08ef49 /bl2/include/boot_hal.h
parent9fc0b5de33c1b16836d45de029792d12d1edc88d (diff)
downloadtrusted-firmware-m-3ecd6221ccecfb0279c1a7ddb94ab917e3e0dc09.tar.gz
Boot: Add boot_plaftorm_quit to boot_hal template
This enables specific platform operations before launching the secure application. Change-Id: I6c87662aefadac6552e0b65f35000cfc73735fd2 Signed-off-by: Michel Jaouen <michel.jaouen@st.com>
Diffstat (limited to 'bl2/include/boot_hal.h')
-rw-r--r--bl2/include/boot_hal.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/bl2/include/boot_hal.h b/bl2/include/boot_hal.h
index 03ff53bfa1..eaf4368e82 100644
--- a/bl2/include/boot_hal.h
+++ b/bl2/include/boot_hal.h
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2019-2020, Arm Limited. All rights reserved.
+ * Copyright (c) 2020 STMicroelectronics. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
@@ -14,6 +15,11 @@
extern "C" {
#endif
+struct boot_arm_vector_table {
+ uint32_t msp;
+ uint32_t reset;
+};
+
/*
* \brief It clears that part of the RAM which was used by MCUBoot, expect the
* TFM_SHARED_DATA area, which is used to pass data to the TF-M runtime.
@@ -32,6 +38,14 @@ extern "C" {
*/
void boot_clear_bl2_ram_area(void);
+/*
+ * \brief Chain-loading the next image in the boot sequence.
+ * Can be overridden for platform specific initialization.
+ * \param[in] reset_handler_addr Address of next image's Reset_Handler() in
+ the boot chain (TF-M SPE, etc.)
+ */
+void boot_jump_to_next_image(uint32_t reset_handler_addr);
+
/**
* \brief Platform peripherals and devices initialization.
* Can be overridden for platform specific initialization.
@@ -40,6 +54,14 @@ void boot_clear_bl2_ram_area(void);
*/
int32_t boot_platform_init(void);
+/**
+ * \brief Platform operation to start secure image.
+ * Can be overridden for platform specific initialization.
+ *
+ * \param[in] vt pointer to secure application vector table descriptor
+ */
+void boot_platform_quit(struct boot_arm_vector_table *vt);
+
#ifdef __cplusplus
}
#endif