2013-10-25 09:08:21 +01:00
|
|
|
/*
|
2016-05-24 16:56:03 +01:00
|
|
|
* Copyright (c) 2013-2016, ARM Limited and Contributors. All rights reserved.
|
2013-10-25 09:08:21 +01:00
|
|
|
*
|
2017-05-03 09:38:09 +01:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2013-10-25 09:08:21 +01:00
|
|
|
*/
|
|
|
|
|
2014-02-07 15:53:18 +00:00
|
|
|
#include <asm_macros.S>
|
2018-12-14 00:18:21 +00:00
|
|
|
#include <common/bl_common.h>
|
2013-10-25 09:08:21 +01:00
|
|
|
|
2016-05-24 16:56:03 +01:00
|
|
|
/* -----------------------------------------------------------------------------
|
|
|
|
* Very simple stackless exception handlers used by BL2 and BL31 stages.
|
|
|
|
* BL31 uses them before stacks are setup. BL2 uses them throughout.
|
|
|
|
* -----------------------------------------------------------------------------
|
|
|
|
*/
|
2013-10-25 09:08:21 +01:00
|
|
|
.globl early_exceptions
|
|
|
|
|
2016-05-24 16:56:03 +01:00
|
|
|
vector_base early_exceptions
|
2013-10-25 09:08:21 +01:00
|
|
|
|
|
|
|
/* -----------------------------------------------------
|
2016-05-24 16:56:03 +01:00
|
|
|
* Current EL with SP0 : 0x0 - 0x200
|
2013-10-25 09:08:21 +01:00
|
|
|
* -----------------------------------------------------
|
|
|
|
*/
|
2016-05-24 16:56:03 +01:00
|
|
|
vector_entry SynchronousExceptionSP0
|
2013-10-25 09:08:21 +01:00
|
|
|
mov x0, #SYNC_EXCEPTION_SP_EL0
|
|
|
|
bl plat_report_exception
|
2016-11-30 15:21:11 +00:00
|
|
|
no_ret plat_panic_handler
|
2018-04-17 11:31:43 +01:00
|
|
|
end_vector_entry SynchronousExceptionSP0
|
2013-10-25 09:08:21 +01:00
|
|
|
|
2016-05-24 16:56:03 +01:00
|
|
|
vector_entry IrqSP0
|
2013-10-25 09:08:21 +01:00
|
|
|
mov x0, #IRQ_SP_EL0
|
|
|
|
bl plat_report_exception
|
2016-11-30 15:21:11 +00:00
|
|
|
no_ret plat_panic_handler
|
2018-04-17 11:31:43 +01:00
|
|
|
end_vector_entry IrqSP0
|
2013-10-25 09:08:21 +01:00
|
|
|
|
2016-05-24 16:56:03 +01:00
|
|
|
vector_entry FiqSP0
|
2013-10-25 09:08:21 +01:00
|
|
|
mov x0, #FIQ_SP_EL0
|
|
|
|
bl plat_report_exception
|
2016-11-30 15:21:11 +00:00
|
|
|
no_ret plat_panic_handler
|
2018-04-17 11:31:43 +01:00
|
|
|
end_vector_entry FiqSP0
|
2013-10-25 09:08:21 +01:00
|
|
|
|
2016-05-24 16:56:03 +01:00
|
|
|
vector_entry SErrorSP0
|
2013-10-25 09:08:21 +01:00
|
|
|
mov x0, #SERROR_SP_EL0
|
|
|
|
bl plat_report_exception
|
2016-11-30 15:21:11 +00:00
|
|
|
no_ret plat_panic_handler
|
2018-04-17 11:31:43 +01:00
|
|
|
end_vector_entry SErrorSP0
|
2013-10-25 09:08:21 +01:00
|
|
|
|
|
|
|
/* -----------------------------------------------------
|
2016-05-24 16:56:03 +01:00
|
|
|
* Current EL with SPx: 0x200 - 0x400
|
2013-10-25 09:08:21 +01:00
|
|
|
* -----------------------------------------------------
|
|
|
|
*/
|
2016-05-24 16:56:03 +01:00
|
|
|
vector_entry SynchronousExceptionSPx
|
2013-10-25 09:08:21 +01:00
|
|
|
mov x0, #SYNC_EXCEPTION_SP_ELX
|
|
|
|
bl plat_report_exception
|
2016-11-30 15:21:11 +00:00
|
|
|
no_ret plat_panic_handler
|
2018-04-17 11:31:43 +01:00
|
|
|
end_vector_entry SynchronousExceptionSPx
|
2013-10-25 09:08:21 +01:00
|
|
|
|
2016-05-24 16:56:03 +01:00
|
|
|
vector_entry IrqSPx
|
2013-10-25 09:08:21 +01:00
|
|
|
mov x0, #IRQ_SP_ELX
|
|
|
|
bl plat_report_exception
|
2016-11-30 15:21:11 +00:00
|
|
|
no_ret plat_panic_handler
|
2018-04-17 11:31:43 +01:00
|
|
|
end_vector_entry IrqSPx
|
2013-10-25 09:08:21 +01:00
|
|
|
|
2016-05-24 16:56:03 +01:00
|
|
|
vector_entry FiqSPx
|
2013-10-25 09:08:21 +01:00
|
|
|
mov x0, #FIQ_SP_ELX
|
|
|
|
bl plat_report_exception
|
2016-11-30 15:21:11 +00:00
|
|
|
no_ret plat_panic_handler
|
2018-04-17 11:31:43 +01:00
|
|
|
end_vector_entry FiqSPx
|
2013-10-25 09:08:21 +01:00
|
|
|
|
2016-05-24 16:56:03 +01:00
|
|
|
vector_entry SErrorSPx
|
2013-10-25 09:08:21 +01:00
|
|
|
mov x0, #SERROR_SP_ELX
|
|
|
|
bl plat_report_exception
|
2016-11-30 15:21:11 +00:00
|
|
|
no_ret plat_panic_handler
|
2018-04-17 11:31:43 +01:00
|
|
|
end_vector_entry SErrorSPx
|
2013-10-25 09:08:21 +01:00
|
|
|
|
|
|
|
/* -----------------------------------------------------
|
2016-05-24 16:56:03 +01:00
|
|
|
* Lower EL using AArch64 : 0x400 - 0x600
|
2013-10-25 09:08:21 +01:00
|
|
|
* -----------------------------------------------------
|
|
|
|
*/
|
2016-05-24 16:56:03 +01:00
|
|
|
vector_entry SynchronousExceptionA64
|
2014-03-24 10:24:08 +00:00
|
|
|
mov x0, #SYNC_EXCEPTION_AARCH64
|
|
|
|
bl plat_report_exception
|
2016-11-30 15:21:11 +00:00
|
|
|
no_ret plat_panic_handler
|
2018-04-17 11:31:43 +01:00
|
|
|
end_vector_entry SynchronousExceptionA64
|
2014-02-07 15:50:57 +00:00
|
|
|
|
2016-05-24 16:56:03 +01:00
|
|
|
vector_entry IrqA64
|
2014-02-07 15:50:57 +00:00
|
|
|
mov x0, #IRQ_AARCH64
|
|
|
|
bl plat_report_exception
|
2016-11-30 15:21:11 +00:00
|
|
|
no_ret plat_panic_handler
|
2018-04-17 11:31:43 +01:00
|
|
|
end_vector_entry IrqA64
|
2014-02-07 15:50:57 +00:00
|
|
|
|
2016-05-24 16:56:03 +01:00
|
|
|
vector_entry FiqA64
|
2014-02-07 15:50:57 +00:00
|
|
|
mov x0, #FIQ_AARCH64
|
|
|
|
bl plat_report_exception
|
2016-11-30 15:21:11 +00:00
|
|
|
no_ret plat_panic_handler
|
2018-04-17 11:31:43 +01:00
|
|
|
end_vector_entry FiqA64
|
2014-02-07 15:50:57 +00:00
|
|
|
|
2016-05-24 16:56:03 +01:00
|
|
|
vector_entry SErrorA64
|
2014-02-07 15:50:57 +00:00
|
|
|
mov x0, #SERROR_AARCH64
|
|
|
|
bl plat_report_exception
|
2016-11-30 15:21:11 +00:00
|
|
|
no_ret plat_panic_handler
|
2018-04-17 11:31:43 +01:00
|
|
|
end_vector_entry SErrorA64
|
2014-02-07 15:50:57 +00:00
|
|
|
|
|
|
|
/* -----------------------------------------------------
|
2016-05-24 16:56:03 +01:00
|
|
|
* Lower EL using AArch32 : 0x600 - 0x800
|
2014-02-07 15:50:57 +00:00
|
|
|
* -----------------------------------------------------
|
|
|
|
*/
|
2016-05-24 16:56:03 +01:00
|
|
|
vector_entry SynchronousExceptionA32
|
2014-02-07 15:50:57 +00:00
|
|
|
mov x0, #SYNC_EXCEPTION_AARCH32
|
|
|
|
bl plat_report_exception
|
2016-11-30 15:21:11 +00:00
|
|
|
no_ret plat_panic_handler
|
2018-04-17 11:31:43 +01:00
|
|
|
end_vector_entry SynchronousExceptionA32
|
2014-02-07 15:50:57 +00:00
|
|
|
|
2016-05-24 16:56:03 +01:00
|
|
|
vector_entry IrqA32
|
2014-02-07 15:50:57 +00:00
|
|
|
mov x0, #IRQ_AARCH32
|
|
|
|
bl plat_report_exception
|
2016-11-30 15:21:11 +00:00
|
|
|
no_ret plat_panic_handler
|
2018-04-17 11:31:43 +01:00
|
|
|
end_vector_entry IrqA32
|
2014-02-07 15:50:57 +00:00
|
|
|
|
2016-05-24 16:56:03 +01:00
|
|
|
vector_entry FiqA32
|
2014-02-07 15:50:57 +00:00
|
|
|
mov x0, #FIQ_AARCH32
|
|
|
|
bl plat_report_exception
|
2016-11-30 15:21:11 +00:00
|
|
|
no_ret plat_panic_handler
|
2018-04-17 11:31:43 +01:00
|
|
|
end_vector_entry FiqA32
|
2014-02-07 15:50:57 +00:00
|
|
|
|
2016-05-24 16:56:03 +01:00
|
|
|
vector_entry SErrorA32
|
2014-02-07 15:50:57 +00:00
|
|
|
mov x0, #SERROR_AARCH32
|
|
|
|
bl plat_report_exception
|
2016-11-30 15:21:11 +00:00
|
|
|
no_ret plat_panic_handler
|
2018-04-17 11:31:43 +01:00
|
|
|
end_vector_entry SErrorA32
|