1 #------------------------------------------------------------------------------
3 # Copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.<BR>
5 # This program and the accompanying materials
6 # are licensed and made available under the terms and conditions of the BSD License
7 # which accompanies this distribution. The full text of the license may be found at
8 # http://opensource.org/licenses/bsd-license.php
10 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 #------------------------------------------------------------------------------
15 #include <Chipset/AArch64.h>
17 GCC_ASM_IMPORT(DefaultExceptionHandler)
20 VECTOR_BASE(DebugAgentVectorTable)
23 // Current EL with SP0 : 0x0 - 0x180
25 VECTOR_ENTRY(DebugAgentVectorTable, ARM_VECTOR_CUR_SP0_SYNC)
26 ASM_PFX(SynchronousExceptionSP0):
27 b ASM_PFX(SynchronousExceptionSP0)
29 VECTOR_ENTRY(DebugAgentVectorTable, ARM_VECTOR_CUR_SP0_IRQ)
33 VECTOR_ENTRY(DebugAgentVectorTable, ARM_VECTOR_CUR_SP0_FIQ)
37 VECTOR_ENTRY(DebugAgentVectorTable, ARM_VECTOR_CUR_SP0_SERR)
42 // Current EL with SPx: 0x200 - 0x380
44 VECTOR_ENTRY(DebugAgentVectorTable, ARM_VECTOR_CUR_SPx_SYNC)
45 ASM_PFX(SynchronousExceptionSPx):
46 b ASM_PFX(SynchronousExceptionSPx)
48 VECTOR_ENTRY(DebugAgentVectorTable, ARM_VECTOR_CUR_SPx_IRQ)
52 VECTOR_ENTRY(DebugAgentVectorTable, ARM_VECTOR_CUR_SPx_FIQ)
56 VECTOR_ENTRY(DebugAgentVectorTable, ARM_VECTOR_CUR_SPx_SERR)
60 /* Lower EL using AArch64 : 0x400 - 0x580 */
61 VECTOR_ENTRY(DebugAgentVectorTable, ARM_VECTOR_LOW_A64_SYNC)
62 ASM_PFX(SynchronousExceptionA64):
63 b ASM_PFX(SynchronousExceptionA64)
65 VECTOR_ENTRY(DebugAgentVectorTable, ARM_VECTOR_LOW_A64_IRQ)
69 VECTOR_ENTRY(DebugAgentVectorTable, ARM_VECTOR_LOW_A64_FIQ)
73 VECTOR_ENTRY(DebugAgentVectorTable, ARM_VECTOR_LOW_A64_SERR)
78 // Lower EL using AArch32 : 0x600 - 0x780
80 VECTOR_ENTRY(DebugAgentVectorTable, ARM_VECTOR_LOW_A32_SYNC)
81 ASM_PFX(SynchronousExceptionA32):
82 b ASM_PFX(SynchronousExceptionA32)
84 VECTOR_ENTRY(DebugAgentVectorTable, ARM_VECTOR_LOW_A32_IRQ)
88 VECTOR_ENTRY(DebugAgentVectorTable, ARM_VECTOR_LOW_A32_FIQ)
92 VECTOR_ENTRY(DebugAgentVectorTable, ARM_VECTOR_LOW_A32_SERR)
96 VECTOR_END(DebugAgentVectorTable)