1/* 2 * Copyright (c) 2016-2022, ARM Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7#include <arch.h> 8#include <asm_macros.S> 9 10 .weak plat_report_exception 11 .weak plat_report_prefetch_abort 12 .weak plat_report_data_abort 13 .weak plat_reset_handler 14 .weak plat_disable_acp 15 .weak bl1_plat_prepare_exit 16 .weak platform_mem_init 17 .weak plat_panic_handler 18 19 /* ----------------------------------------------------- 20 * Placeholder function which should be redefined by 21 * each platform. 22 * ----------------------------------------------------- 23 */ 24func plat_report_exception 25 bx lr 26endfunc plat_report_exception 27 28 /* ----------------------------------------------------- 29 * Placeholder function which should be redefined by 30 * each platform. 31 * ----------------------------------------------------- 32 */ 33func 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 */ 51func plat_reset_handler 52 bx lr 53endfunc plat_reset_handler 54 55 /* ----------------------------------------------------- 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 64 /* --------------------------------------------------------------------- 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 /* ----------------------------------------------------- 74 * 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 /* ----------------------------------------------------- 83 * 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 90