mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-18 18:44:22 +00:00
refactor(nvidia): console runtime switch on bl31 exit
TF-A plans to move the console_flush() and console_switch_state(CONOSLE_FLAG_RUNTIME) calls to bl31_main() just before BL31 exits. For now we are mimicking the generic implementation by calling flush and changing the console state to runtime at the end of bl31_plat_runtime_setup() for each platform. This is so that each platform can test it prior to moving flush and switch to bl31_main(). This patch affects Nvidia platform only. Change-Id: I78c148f50e8ee881e1816cab6eeea3765dc469e5 Signed-off-by: Salman Nabi <salman.nabi@arm.com>
This commit is contained in:
parent
d51a63260f
commit
c1fd8f9d7b
1 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2015-2020, ARM Limited and Contributors. All rights reserved.
|
||||
* Copyright (c) 2015-2024, ARM Limited and Contributors. All rights reserved.
|
||||
* Copyright (c) 2020-2023, NVIDIA Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
|
@ -258,6 +258,9 @@ void bl31_plat_runtime_setup(void)
|
|||
*/
|
||||
boot_profiler_add_record("[TF] bl31 exit");
|
||||
boot_profiler_deinit();
|
||||
|
||||
console_flush();
|
||||
console_switch_state(CONSOLE_FLAG_RUNTIME);
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
|
|
Loading…
Add table
Reference in a new issue