mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 17:44:19 +00:00
refactor(qemu): console runtime switch on bl31 exit
Flush the FIFO before switching to runtime. This is so that there are no lingering chars in the FIFO when we move to the runtime console. TF-A plans to refactor the console_Switch_state(CONSOLE_FLAG_RUNTIME) and console_flush() calls and make them the last calls in bl31_main() (before BL31 exits). Until then they are being left as the last calls in bl31_plat_runtime_setup() for testing before refactoring. This patch affects the QEMU platform only. Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Change-Id: I6188d73dd3f3c97f41bb25de543f8c46a972adf0
This commit is contained in:
parent
fa45e03c38
commit
c09aa4ff76
1 changed files with 3 additions and 2 deletions
|
@ -199,8 +199,6 @@ entry_point_info_t *bl31_plat_get_next_image_ep_info(uint32_t type)
|
|||
|
||||
void bl31_plat_runtime_setup(void)
|
||||
{
|
||||
console_switch_state(CONSOLE_FLAG_RUNTIME);
|
||||
|
||||
#if TRANSFER_LIST
|
||||
if (bl31_tl) {
|
||||
/*
|
||||
|
@ -210,4 +208,7 @@ void bl31_plat_runtime_setup(void)
|
|||
memcpy((void *)FW_NS_HANDOFF_BASE, bl31_tl, bl31_tl->max_size);
|
||||
}
|
||||
#endif
|
||||
|
||||
console_flush();
|
||||
console_switch_state(CONSOLE_FLAG_RUNTIME);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue