Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 1 | /* |
Ambroise Vincent | 962109f | 2019-03-27 13:48:15 +0000 | [diff] [blame] | 2 | * Copyright (c) 2016-2019, 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 |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 11 | .weak plat_reset_handler |
Yatharth Kochar | f528faf | 2016-06-28 16:58:26 +0100 | [diff] [blame] | 12 | .weak plat_disable_acp |
Etienne Carriere | 953395a | 2017-11-05 22:57:20 +0100 | [diff] [blame] | 13 | .weak bl1_plat_prepare_exit |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 14 | .weak platform_mem_init |
| 15 | .weak plat_panic_handler |
| 16 | |
| 17 | /* ----------------------------------------------------- |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 18 | * Placeholder function which should be redefined by |
| 19 | * each platform. |
| 20 | * ----------------------------------------------------- |
| 21 | */ |
Etienne Carriere | 953395a | 2017-11-05 22:57:20 +0100 | [diff] [blame] | 22 | func plat_report_exception |
| 23 | bx lr |
| 24 | endfunc plat_report_exception |
| 25 | |
Antonio Nino Diaz | d3ec543 | 2017-02-17 17:11:27 +0000 | [diff] [blame] | 26 | /* ----------------------------------------------------- |
| 27 | * Placeholder function which should be redefined by |
| 28 | * each platform. |
| 29 | * ----------------------------------------------------- |
| 30 | */ |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 31 | func plat_reset_handler |
| 32 | bx lr |
| 33 | endfunc plat_reset_handler |
| 34 | |
Yatharth Kochar | f528faf | 2016-06-28 16:58:26 +0100 | [diff] [blame] | 35 | /* ----------------------------------------------------- |
| 36 | * Placeholder function which should be redefined by |
| 37 | * each platform. |
| 38 | * ----------------------------------------------------- |
| 39 | */ |
| 40 | func plat_disable_acp |
| 41 | bx lr |
| 42 | endfunc plat_disable_acp |
| 43 | |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 44 | /* --------------------------------------------------------------------- |
| 45 | * Placeholder function which should be redefined by |
| 46 | * each platform. |
| 47 | * --------------------------------------------------------------------- |
| 48 | */ |
| 49 | func platform_mem_init |
| 50 | bx lr |
| 51 | endfunc platform_mem_init |
| 52 | |
| 53 | /* ----------------------------------------------------- |
Etienne Carriere | 953395a | 2017-11-05 22:57:20 +0100 | [diff] [blame] | 54 | * void bl1_plat_prepare_exit(entry_point_info_t *ep_info); |
| 55 | * Called before exiting BL1. Default: do nothing |
| 56 | * ----------------------------------------------------- |
| 57 | */ |
| 58 | func bl1_plat_prepare_exit |
| 59 | bx lr |
| 60 | endfunc bl1_plat_prepare_exit |
| 61 | |
| 62 | /* ----------------------------------------------------- |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 63 | * void plat_panic_handler(void) __dead2; |
| 64 | * Endless loop by default. |
| 65 | * ----------------------------------------------------- |
| 66 | */ |
| 67 | func plat_panic_handler |
| 68 | b plat_panic_handler |
| 69 | endfunc plat_panic_handler |