diff options
author | Soby Mathew <soby.mathew@arm.com> | 2015-12-09 11:28:43 +0000 |
---|---|---|
committer | Soby Mathew <soby.mathew@arm.com> | 2015-12-09 16:38:29 +0000 |
commit | 78e61613738e53738e1cc8ddefd4cef2f2443f4c (patch) | |
tree | d6ec13195f7839b1f0b7d6db0513c1aa4834fd7b /include | |
parent | 487461cb6e367a5db397c34ed75fbcfdd6bda1c9 (diff) | |
download | trusted-firmware-a-78e61613738e53738e1cc8ddefd4cef2f2443f4c.tar.gz |
Ensure BL31 does not print to boot console by default
It is not ideal for BL31 to continue to use boot console at
runtime which could be potentially uninitialized. This patch
introduces a new optional platform porting API
`bl31_plat_runtime_setup()` which allows the platform to perform
any BL31 runtime setup just prior to BL31 exit during cold boot.
The default weak implementation of this function will invoke
`console_uninit()` which will suppress any BL31 runtime logs.
On the ARM Standard platforms, there is an anomaly that
the boot console will be reinitialized on resumption from
system suspend in `arm_system_pwr_domain_resume()`. This
will be resolved in the following patch.
NOTE: The default weak definition of `bl31_plat_runtime_setup()`
disables the BL31 console. To print the BL31 runtime
messages, platforms must override this API and initialize a
runtime console.
Fixes ARM-software/tf-issues#328
Change-Id: Ibaf8346fcceb447fe1a5674094c9f8eb4c09ac4a
Diffstat (limited to 'include')
-rw-r--r-- | include/plat/common/platform.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/plat/common/platform.h b/include/plat/common/platform.h index de9848b7c1..956d17f764 100644 --- a/include/plat/common/platform.h +++ b/include/plat/common/platform.h @@ -179,6 +179,7 @@ void bl31_early_platform_setup(struct bl31_params *from_bl2, void *plat_params_from_bl2); void bl31_plat_arch_setup(void); void bl31_platform_setup(void); +void bl31_plat_runtime_setup(void); struct entry_point_info *bl31_plat_get_next_image_ep_info(uint32_t type); /******************************************************************************* |