mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-07 21:33:54 +00:00

Move console_switch_state(CONSOLE_FLAG_RUNTIME) to sp_min_main() so that this becomes the last call before bl32/sp_min exits. This also ensures that console_flush() is called before switching console state to runtime. This patch mimics the behavior of console_switch_state() call in BL31 per this patch https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/26771/4. Change-Id: I5b562d02706b19bb8b14154be97b6e9ef4e2fd3b Signed-off-by: Salman Nabi <salman.nabi@arm.com>
20 lines
513 B
C
20 lines
513 B
C
/*
|
|
* Copyright (c) 2018-2024, Arm Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <drivers/console.h>
|
|
#include <plat/common/platform.h>
|
|
#include <platform_sp_min.h>
|
|
|
|
/*
|
|
* The following platform setup functions are weakly defined. They
|
|
* provide typical implementations that may be re-used by multiple
|
|
* platforms but may also be overridden by a platform if required.
|
|
*/
|
|
#pragma weak sp_min_plat_runtime_setup
|
|
|
|
void sp_min_plat_runtime_setup(void)
|
|
{
|
|
}
|