mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-19 02:54:24 +00:00

When we add a new callback, we need to duplicate fallbacks among plat/common/{aarch32,aarch64}/platform_helpers.S This is tedious. I created a new C file, then moved 3 functions: plat_error_handler bl2_plat_preload_setup plat_try_next_boot_source They are called from C, so I do not see a good reason to implement them in assembly. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
31 lines
518 B
C
31 lines
518 B
C
/*
|
|
* Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <arch_helpers.h>
|
|
#include <platform.h>
|
|
|
|
/*
|
|
* Placeholder functions which can be redefined by each platfrom.
|
|
*/
|
|
|
|
#pragma weak plat_error_handler
|
|
#pragma weak bl2_plat_preload_setup
|
|
#pragma weak plat_try_next_boot_source
|
|
|
|
void __dead2 plat_error_handler(int err)
|
|
{
|
|
while (1)
|
|
wfi();
|
|
}
|
|
|
|
void bl2_plat_preload_setup(void)
|
|
{
|
|
}
|
|
|
|
int plat_try_next_boot_source(void)
|
|
{
|
|
return 0;
|
|
}
|