plat_bl_common.c 934 Bytes
Newer Older
1
/*
2
 * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
3
4
5
6
7
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#include <arch_helpers.h>
8
9
10
11
#include <assert.h>
#include <bl_common.h>
#include <debug.h>
#include <errno.h>
12
13

/*
14
15
 * The following platform functions are weakly defined. The Platforms
 * may redefine with strong definition.
16
 */
17
#pragma weak bl2_el3_plat_prepare_exit
18
19
#pragma weak plat_error_handler
#pragma weak bl2_plat_preload_setup
20
21
#pragma weak bl2_plat_handle_pre_image_load
#pragma weak bl2_plat_handle_post_image_load
22
23
#pragma weak plat_try_next_boot_source

24
void bl2_el3_plat_prepare_exit(void)
25
26
27
{
}

28
void __dead2 plat_error_handler(int err)
29
{
30
31
	while (1)
		wfi();
32
33
}

34
35
36
37
void bl2_plat_preload_setup(void)
{
}

38
39
40
41
42
43
44
45
46
47
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;
}

48
49
50
51
int plat_try_next_boot_source(void)
{
	return 0;
}