blob: 75cc456c48b3c9f7819de50578d40395441b9dd7 [file] [log] [blame]
Soby Mathew0d268dc2016-07-11 14:13:56 +01001/*
Yann Gautierc1425872019-02-15 16:42:20 +01002 * Copyright (c) 2016-2022, ARM Limited and Contributors. All rights reserved.
Soby Mathew0d268dc2016-07-11 14:13:56 +01003 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Soby Mathew0d268dc2016-07-11 14:13:56 +01005 */
6
7#include <arch.h>
8#include <asm_macros.S>
9
Etienne Carriere953395a2017-11-05 22:57:20 +010010 .weak plat_report_exception
Yann Gautierc1425872019-02-15 16:42:20 +010011 .weak plat_report_prefetch_abort
12 .weak plat_report_data_abort
Soby Mathew0d268dc2016-07-11 14:13:56 +010013 .weak plat_reset_handler
Yatharth Kocharf528faf2016-06-28 16:58:26 +010014 .weak plat_disable_acp
Etienne Carriere953395a2017-11-05 22:57:20 +010015 .weak bl1_plat_prepare_exit
Soby Mathew0d268dc2016-07-11 14:13:56 +010016 .weak platform_mem_init
17 .weak plat_panic_handler
18
19 /* -----------------------------------------------------
Soby Mathew0d268dc2016-07-11 14:13:56 +010020 * Placeholder function which should be redefined by
21 * each platform.
22 * -----------------------------------------------------
23 */
Etienne Carriere953395a2017-11-05 22:57:20 +010024func plat_report_exception
25 bx lr
26endfunc plat_report_exception
27
Antonio Nino Diazd3ec5432017-02-17 17:11:27 +000028 /* -----------------------------------------------------
29 * Placeholder function which should be redefined by
30 * each platform.
31 * -----------------------------------------------------
32 */
Yann Gautierc1425872019-02-15 16:42:20 +010033func plat_report_prefetch_abort
34 bx lr
35endfunc plat_report_prefetch_abort
36
37 /* -----------------------------------------------------
38 * Placeholder function which should be redefined by
39 * each platform.
40 * -----------------------------------------------------
41 */
42func plat_report_data_abort
43 bx lr
44endfunc plat_report_data_abort
45
46 /* -----------------------------------------------------
47 * Placeholder function which should be redefined by
48 * each platform.
49 * -----------------------------------------------------
50 */
Soby Mathew0d268dc2016-07-11 14:13:56 +010051func plat_reset_handler
52 bx lr
53endfunc plat_reset_handler
54
Yatharth Kocharf528faf2016-06-28 16:58:26 +010055 /* -----------------------------------------------------
56 * Placeholder function which should be redefined by
57 * each platform.
58 * -----------------------------------------------------
59 */
60func plat_disable_acp
61 bx lr
62endfunc plat_disable_acp
63
Soby Mathew0d268dc2016-07-11 14:13:56 +010064 /* ---------------------------------------------------------------------
65 * Placeholder function which should be redefined by
66 * each platform.
67 * ---------------------------------------------------------------------
68 */
69func platform_mem_init
70 bx lr
71endfunc platform_mem_init
72
73 /* -----------------------------------------------------
Etienne Carriere953395a2017-11-05 22:57:20 +010074 * void bl1_plat_prepare_exit(entry_point_info_t *ep_info);
75 * Called before exiting BL1. Default: do nothing
76 * -----------------------------------------------------
77 */
78func bl1_plat_prepare_exit
79 bx lr
80endfunc bl1_plat_prepare_exit
81
82 /* -----------------------------------------------------
Soby Mathew0d268dc2016-07-11 14:13:56 +010083 * void plat_panic_handler(void) __dead2;
84 * Endless loop by default.
85 * -----------------------------------------------------
86 */
87func plat_panic_handler
88 b plat_panic_handler
89endfunc plat_panic_handler