diff options
author | Roberto Vargas <roberto.vargas@arm.com> | 2018-04-17 11:31:43 +0100 |
---|---|---|
committer | Roberto Vargas <roberto.vargas@arm.com> | 2018-07-11 09:23:00 +0100 |
commit | a9203edae7906490faebe0eb91825a0cf9a20783 (patch) | |
tree | df1e6a7c213ff91ecf5f06edc07f296d01cd307a /services/std_svc/spm/aarch64 | |
parent | b2805dabaa8292ad158039c59b1577e7ce07ea43 (diff) | |
download | trusted-firmware-a-a9203edae7906490faebe0eb91825a0cf9a20783.tar.gz |
Add end_vector_entry assembler macro
Check_vector_size checks if the size of the vector fits
in the size reserved for it. This check creates problems in
the Clang assembler. A new macro, end_vector_entry, is added
and check_vector_size is deprecated.
This new macro fills the current exception vector until the next
exception vector. If the size of the current vector is bigger
than 32 instructions then it gives an error.
Change-Id: Ie8545cf1003a1e31656a1018dd6b4c28a4eaf671
Signed-off-by: Roberto Vargas <roberto.vargas@arm.com>
Diffstat (limited to 'services/std_svc/spm/aarch64')
-rw-r--r-- | services/std_svc/spm/aarch64/spm_shim_exceptions.S | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/services/std_svc/spm/aarch64/spm_shim_exceptions.S b/services/std_svc/spm/aarch64/spm_shim_exceptions.S index 218245d8e2..9c218dfe85 100644 --- a/services/std_svc/spm/aarch64/spm_shim_exceptions.S +++ b/services/std_svc/spm/aarch64/spm_shim_exceptions.S @@ -23,19 +23,19 @@ vector_base spm_shim_exceptions_ptr, .spm_shim_exceptions */ vector_entry SynchronousExceptionSP0, .spm_shim_exceptions b . - check_vector_size SynchronousExceptionSP0 +end_vector_entry SynchronousExceptionSP0 vector_entry IrqSP0, .spm_shim_exceptions b . - check_vector_size IrqSP0 +end_vector_entry IrqSP0 vector_entry FiqSP0, .spm_shim_exceptions b . - check_vector_size FiqSP0 +end_vector_entry FiqSP0 vector_entry SErrorSP0, .spm_shim_exceptions b . - check_vector_size SErrorSP0 +end_vector_entry SErrorSP0 /* ----------------------------------------------------- * Current EL with SPx: 0x200 - 0x400 @@ -43,19 +43,19 @@ vector_entry SErrorSP0, .spm_shim_exceptions */ vector_entry SynchronousExceptionSPx, .spm_shim_exceptions b . - check_vector_size SynchronousExceptionSPx +end_vector_entry SynchronousExceptionSPx vector_entry IrqSPx, .spm_shim_exceptions b . - check_vector_size IrqSPx +end_vector_entry IrqSPx vector_entry FiqSPx, .spm_shim_exceptions b . - check_vector_size FiqSPx +end_vector_entry FiqSPx vector_entry SErrorSPx, .spm_shim_exceptions b . - check_vector_size SErrorSPx +end_vector_entry SErrorSPx /* ----------------------------------------------------- * Lower EL using AArch64 : 0x400 - 0x600. No exceptions @@ -93,19 +93,19 @@ do_smc: handle_sys_trap: panic: b panic - check_vector_size SynchronousExceptionA64 +end_vector_entry SynchronousExceptionA64 vector_entry IrqA64, .spm_shim_exceptions b . - check_vector_size IrqA64 +end_vector_entry IrqA64 vector_entry FiqA64, .spm_shim_exceptions b . - check_vector_size FiqA64 +end_vector_entry FiqA64 vector_entry SErrorA64, .spm_shim_exceptions b . - check_vector_size SErrorA64 +end_vector_entry SErrorA64 /* ----------------------------------------------------- * Lower EL using AArch32 : 0x600 - 0x800 @@ -113,16 +113,16 @@ vector_entry SErrorA64, .spm_shim_exceptions */ vector_entry SynchronousExceptionA32, .spm_shim_exceptions b . - check_vector_size SynchronousExceptionA32 +end_vector_entry SynchronousExceptionA32 vector_entry IrqA32, .spm_shim_exceptions b . - check_vector_size IrqA32 +end_vector_entry IrqA32 vector_entry FiqA32, .spm_shim_exceptions b . - check_vector_size FiqA32 +end_vector_entry FiqA32 vector_entry SErrorA32, .spm_shim_exceptions b . - check_vector_size SErrorA32 +end_vector_entry SErrorA32 |