mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 17:44:19 +00:00

There are cases where we need to manipulate image information before the load. For example, for decompressing data, we cannot load the compressed images to their final destination. Instead, we need to load them to the temporary buffer for the decompressor. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
43 lines
756 B
C
43 lines
756 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 bl2_plat_handle_pre_image_load
|
|
#pragma weak bl2_plat_handle_post_image_load
|
|
#pragma weak plat_try_next_boot_source
|
|
|
|
void __dead2 plat_error_handler(int err)
|
|
{
|
|
while (1)
|
|
wfi();
|
|
}
|
|
|
|
void bl2_plat_preload_setup(void)
|
|
{
|
|
}
|
|
|
|
int bl2_plat_handle_pre_image_load(unsigned int image_id)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int bl2_plat_handle_post_image_load(unsigned int image_id)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int plat_try_next_boot_source(void)
|
|
{
|
|
return 0;
|
|
}
|