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