Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 1 | /* |
Yann Gautier | c142587 | 2019-02-15 16:42:20 +0100 | [diff] [blame] | 2 | * Copyright (c) 2016-2022, ARM Limited and Contributors. All rights reserved. |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <arch.h> |
| 8 | #include <asm_macros.S> |
| 9 | |
Etienne Carriere | 953395a | 2017-11-05 22:57:20 +0100 | [diff] [blame] | 10 | .weak plat_report_exception |
Yann Gautier | c142587 | 2019-02-15 16:42:20 +0100 | [diff] [blame] | 11 | .weak plat_report_prefetch_abort |
| 12 | .weak plat_report_data_abort |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 13 | .weak plat_reset_handler |
Yatharth Kochar | f528faf | 2016-06-28 16:58:26 +0100 | [diff] [blame] | 14 | .weak plat_disable_acp |
Etienne Carriere | 953395a | 2017-11-05 22:57:20 +0100 | [diff] [blame] | 15 | .weak bl1_plat_prepare_exit |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 16 | .weak platform_mem_init |
| 17 | .weak plat_panic_handler |
| 18 | |
| 19 | /* ----------------------------------------------------- |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 20 | * Placeholder function which should be redefined by |
| 21 | * each platform. |
| 22 | * ----------------------------------------------------- |
| 23 | */ |
Etienne Carriere | 953395a | 2017-11-05 22:57:20 +0100 | [diff] [blame] | 24 | func plat_report_exception |
| 25 | bx lr |
| 26 | endfunc plat_report_exception |
| 27 | |
Antonio Nino Diaz | d3ec543 | 2017-02-17 17:11:27 +0000 | [diff] [blame] | 28 | /* ----------------------------------------------------- |
| 29 | * Placeholder function which should be redefined by |
| 30 | * each platform. |
| 31 | * ----------------------------------------------------- |
| 32 | */ |
Yann Gautier | c142587 | 2019-02-15 16:42:20 +0100 | [diff] [blame] | 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 | */ |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 51 | func plat_reset_handler |
| 52 | bx lr |
| 53 | endfunc plat_reset_handler |
| 54 | |
Yatharth Kochar | f528faf | 2016-06-28 16:58:26 +0100 | [diff] [blame] | 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 | |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 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 | /* ----------------------------------------------------- |
Etienne Carriere | 953395a | 2017-11-05 22:57:20 +0100 | [diff] [blame] | 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 | /* ----------------------------------------------------- |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 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 |