1/* 2 * Copyright (c) 2016-2019, 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_reset_handler 12 .weak plat_disable_acp 13 .weak bl1_plat_prepare_exit 14 .weak platform_mem_init 15 .weak plat_panic_handler 16 17 /* ----------------------------------------------------- 18 * Placeholder function which should be redefined by 19 * each platform. 20 * ----------------------------------------------------- 21 */ 22func plat_report_exception 23 bx lr 24endfunc plat_report_exception 25 26 /* ----------------------------------------------------- 27 * Placeholder function which should be redefined by 28 * each platform. 29 * ----------------------------------------------------- 30 */ 31func plat_reset_handler 32 bx lr 33endfunc plat_reset_handler 34 35 /* ----------------------------------------------------- 36 * Placeholder function which should be redefined by 37 * each platform. 38 * ----------------------------------------------------- 39 */ 40func plat_disable_acp 41 bx lr 42endfunc plat_disable_acp 43 44 /* --------------------------------------------------------------------- 45 * Placeholder function which should be redefined by 46 * each platform. 47 * --------------------------------------------------------------------- 48 */ 49func platform_mem_init 50 bx lr 51endfunc platform_mem_init 52 53 /* ----------------------------------------------------- 54 * void bl1_plat_prepare_exit(entry_point_info_t *ep_info); 55 * Called before exiting BL1. Default: do nothing 56 * ----------------------------------------------------- 57 */ 58func bl1_plat_prepare_exit 59 bx lr 60endfunc bl1_plat_prepare_exit 61 62 /* ----------------------------------------------------- 63 * void plat_panic_handler(void) __dead2; 64 * Endless loop by default. 65 * ----------------------------------------------------- 66 */ 67func plat_panic_handler 68 b plat_panic_handler 69endfunc plat_panic_handler 70