Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 1 | /* |
Masahiro Yamada | 2a4fe4f | 2018-02-01 18:42:24 +0900 | [diff] [blame] | 2 | * Copyright (c) 2016-2018, 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 |
Antonio Nino Diaz | d3ec543 | 2017-02-17 17:11:27 +0000 | [diff] [blame] | 11 | .weak plat_crash_console_init |
| 12 | .weak plat_crash_console_putc |
| 13 | .weak plat_crash_console_flush |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 14 | .weak plat_reset_handler |
Yatharth Kochar | f528faf | 2016-06-28 16:58:26 +0100 | [diff] [blame] | 15 | .weak plat_disable_acp |
Etienne Carriere | 953395a | 2017-11-05 22:57:20 +0100 | [diff] [blame] | 16 | .weak bl1_plat_prepare_exit |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 17 | .weak platform_mem_init |
| 18 | .weak plat_panic_handler |
| 19 | |
| 20 | /* ----------------------------------------------------- |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 21 | * Placeholder function which should be redefined by |
| 22 | * each platform. |
| 23 | * ----------------------------------------------------- |
| 24 | */ |
Etienne Carriere | 953395a | 2017-11-05 22:57:20 +0100 | [diff] [blame] | 25 | func plat_report_exception |
| 26 | bx lr |
| 27 | endfunc plat_report_exception |
| 28 | |
| 29 | /* ----------------------------------------------------- |
| 30 | * Placeholder function which should be redefined by |
| 31 | * each platform. |
| 32 | * ----------------------------------------------------- |
| 33 | */ |
Antonio Nino Diaz | d3ec543 | 2017-02-17 17:11:27 +0000 | [diff] [blame] | 34 | func plat_crash_console_init |
| 35 | mov r0, #0 |
| 36 | bx lr |
| 37 | endfunc plat_crash_console_init |
| 38 | |
| 39 | /* ----------------------------------------------------- |
| 40 | * Placeholder function which should be redefined by |
| 41 | * each platform. |
| 42 | * ----------------------------------------------------- |
| 43 | */ |
| 44 | func plat_crash_console_putc |
| 45 | bx lr |
| 46 | endfunc plat_crash_console_putc |
| 47 | |
| 48 | /* ----------------------------------------------------- |
| 49 | * Placeholder function which should be redefined by |
| 50 | * each platform. |
| 51 | * ----------------------------------------------------- |
| 52 | */ |
| 53 | func plat_crash_console_flush |
| 54 | mov r0, #0 |
| 55 | bx lr |
| 56 | endfunc plat_crash_console_flush |
| 57 | |
| 58 | /* ----------------------------------------------------- |
| 59 | * Placeholder function which should be redefined by |
| 60 | * each platform. |
| 61 | * ----------------------------------------------------- |
| 62 | */ |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 63 | func plat_reset_handler |
| 64 | bx lr |
| 65 | endfunc plat_reset_handler |
| 66 | |
Yatharth Kochar | f528faf | 2016-06-28 16:58:26 +0100 | [diff] [blame] | 67 | /* ----------------------------------------------------- |
| 68 | * Placeholder function which should be redefined by |
| 69 | * each platform. |
| 70 | * ----------------------------------------------------- |
| 71 | */ |
| 72 | func plat_disable_acp |
| 73 | bx lr |
| 74 | endfunc plat_disable_acp |
| 75 | |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 76 | /* --------------------------------------------------------------------- |
| 77 | * Placeholder function which should be redefined by |
| 78 | * each platform. |
| 79 | * --------------------------------------------------------------------- |
| 80 | */ |
| 81 | func platform_mem_init |
| 82 | bx lr |
| 83 | endfunc platform_mem_init |
| 84 | |
| 85 | /* ----------------------------------------------------- |
Etienne Carriere | 953395a | 2017-11-05 22:57:20 +0100 | [diff] [blame] | 86 | * void bl1_plat_prepare_exit(entry_point_info_t *ep_info); |
| 87 | * Called before exiting BL1. Default: do nothing |
| 88 | * ----------------------------------------------------- |
| 89 | */ |
| 90 | func bl1_plat_prepare_exit |
| 91 | bx lr |
| 92 | endfunc bl1_plat_prepare_exit |
| 93 | |
| 94 | /* ----------------------------------------------------- |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 95 | * void plat_panic_handler(void) __dead2; |
| 96 | * Endless loop by default. |
| 97 | * ----------------------------------------------------- |
| 98 | */ |
| 99 | func plat_panic_handler |
| 100 | b plat_panic_handler |
| 101 | endfunc plat_panic_handler |