2 # Copyright (c) 2011-2014, ARM Limited. All rights reserved.
4 # This program and the accompanying materials
5 # are licensed and made available under the terms and conditions of the BSD License
6 # which accompanies this distribution. The full text of the license may be found at
7 # http://opensource.org/licenses/bsd-license.php
9 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 #include <AsmMacroIoLibV8.h>
21 GCC_ASM_EXPORT(PeiVectorTable)
23 //============================================================
24 //Default Exception Handlers
25 //============================================================
27 ASM_PFX(PeiVectorTable):
32 1: mrs x1, elr_el1 /* EL1 Exception Link Register */ ;\
34 2: mrs x1, elr_el2 /* EL2 Exception Link Register */ ;\
35 3: bl ASM_PFX(PeiCommonExceptionEntry) ;
39 // Default Exception handlers: There is no plan to return from any of these exceptions.
40 // No context saving at all.
44 _DefaultSyncExceptHandler_t:
45 mov x0, #EXCEPT_AARCH64_SYNCHRONOUS_EXCEPTIONS
50 mov x0, #EXCEPT_AARCH64_IRQ
55 mov x0, #EXCEPT_AARCH64_FIQ
60 mov x0, #EXCEPT_AARCH64_SERROR
64 _DefaultSyncExceptHandler_h:
65 mov x0, #EXCEPT_AARCH64_SYNCHRONOUS_EXCEPTIONS
70 mov x0, #EXCEPT_AARCH64_IRQ
75 mov x0, #EXCEPT_AARCH64_FIQ
80 mov x0, #EXCEPT_AARCH64_SERROR