|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Copyright (c) 2016-2020, ARM Limited and Contributors. All rights reserved.
|
|
|
+ * Copyright (c) 2016-2022, ARM Limited and Contributors. All rights reserved.
|
|
|
*
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
*/
|
|
@@ -14,6 +14,8 @@
|
|
|
.globl asm_assert
|
|
|
.globl do_panic
|
|
|
.globl report_exception
|
|
|
+ .globl report_prefetch_abort
|
|
|
+ .globl report_data_abort
|
|
|
|
|
|
/* Since the max decimal input number is 65536 */
|
|
|
#define MAX_DEC_DIVISOR 10000
|
|
@@ -205,3 +207,33 @@ func report_exception
|
|
|
bl plat_report_exception
|
|
|
no_ret plat_panic_handler
|
|
|
endfunc report_exception
|
|
|
+
|
|
|
+ /***********************************************************
|
|
|
+ * This function is called from the vector table for
|
|
|
+ * unhandled exceptions. The lr_abt is given as an
|
|
|
+ * argument to platform handler.
|
|
|
+ ***********************************************************/
|
|
|
+func report_prefetch_abort
|
|
|
+#if ARM_ARCH_MAJOR == 7 && !defined(ARMV7_SUPPORTS_VIRTUALIZATION)
|
|
|
+ b report_exception
|
|
|
+#else
|
|
|
+ mrs r0, lr_abt
|
|
|
+ bl plat_report_prefetch_abort
|
|
|
+ no_ret plat_panic_handler
|
|
|
+#endif
|
|
|
+endfunc report_prefetch_abort
|
|
|
+
|
|
|
+ /***********************************************************
|
|
|
+ * This function is called from the vector table for
|
|
|
+ * unhandled exceptions. The lr_abt is given as an
|
|
|
+ * argument to platform handler.
|
|
|
+ ***********************************************************/
|
|
|
+func report_data_abort
|
|
|
+#if ARM_ARCH_MAJOR == 7 && !defined(ARMV7_SUPPORTS_VIRTUALIZATION)
|
|
|
+ b report_exception
|
|
|
+#else
|
|
|
+ mrs r0, lr_abt
|
|
|
+ bl plat_report_data_abort
|
|
|
+ no_ret plat_panic_handler
|
|
|
+#endif
|
|
|
+endfunc report_data_abort
|