Debian Codegraph @

plat/common/aarch32/platform_helpers.S

raw
1 /*
2 * Copyright (c) 2016-2022, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7 #include <arch.h>
8 #include <asm_macros.S>
9
10 .weak plat_report_exception
11 .weak plat_report_prefetch_abort
12 .weak plat_report_data_abort
13 .weak plat_reset_handler
14 .weak plat_disable_acp
15 .weak bl1_plat_prepare_exit
16 .weak platform_mem_init
17 .weak plat_panic_handler
18
19 /* -----------------------------------------------------
20 * Placeholder function which should be redefined by
21 * each platform.
22 * -----------------------------------------------------
23 */
24 func plat_report_exception
25 bx lr
26 endfunc plat_report_exception
27
28 /* -----------------------------------------------------
29 * Placeholder function which should be redefined by
30 * each platform.
31 * -----------------------------------------------------
32 */
33 func plat_report_prefetch_abort
34 bx lr
35 endfunc plat_report_prefetch_abort
36
37 /* -----------------------------------------------------
38 * Placeholder function which should be redefined by
39 * each platform.
40 * -----------------------------------------------------
41 */
42 func plat_report_data_abort
43 bx lr
44 endfunc plat_report_data_abort
45
46 /* -----------------------------------------------------
47 * Placeholder function which should be redefined by
48 * each platform.
49 * -----------------------------------------------------
50 */
51 func plat_reset_handler
52 bx lr
53 endfunc plat_reset_handler
54
55 /* -----------------------------------------------------
56 * Placeholder function which should be redefined by
57 * each platform.
58 * -----------------------------------------------------
59 */
60 func plat_disable_acp
61 bx lr
62 endfunc plat_disable_acp
63
64 /* ---------------------------------------------------------------------
65 * Placeholder function which should be redefined by
66 * each platform.
67 * ---------------------------------------------------------------------
68 */
69 func platform_mem_init
70 bx lr
71 endfunc platform_mem_init
72
73 /* -----------------------------------------------------
74 * void bl1_plat_prepare_exit(entry_point_info_t *ep_info);
75 * Called before exiting BL1. Default: do nothing
76 * -----------------------------------------------------
77 */
78 func bl1_plat_prepare_exit
79 bx lr
80 endfunc bl1_plat_prepare_exit
81
82 /* -----------------------------------------------------
83 * void plat_panic_handler(void) __dead2;
84 * Endless loop by default.
85 * -----------------------------------------------------
86 */
87 func plat_panic_handler
88 b plat_panic_handler
89 endfunc plat_panic_handler