2 // Copyright (c) 2011, 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 <AsmMacroIoLib.h>
18 #start of the code section
23 GCC_ASM_IMPORT(PeiCommonExceptionEntry)
26 GCC_ASM_EXPORT(PeiVectorTable)
28 //============================================================
29 //Default Exception Handlers
30 //============================================================
32 //FIXME: One of the EDK2 tool is broken. It does not look to respect the alignment. Even, if we specify 32-byte alignment for this file.
36 ASM_PFX(PeiVectorTable):
37 b _DefaultResetHandler
40 b _DefaultPrefetchAbort
47 // Default Exception handlers: There is no plan to return from any of these exceptions.
48 // No context saving at all.
52 # Switch to SVC for common stack
55 blx ASM_PFX(PeiCommonExceptionEntry)
59 # Switch to SVC for common stack
62 blx ASM_PFX(PeiCommonExceptionEntry)
66 # Switch to SVC for common stack
69 blx ASM_PFX(PeiCommonExceptionEntry)
71 _DefaultPrefetchAbort:
73 # Switch to SVC for common stack
76 blx ASM_PFX(PeiCommonExceptionEntry)
80 # Switch to SVC for common stack
83 blx ASM_PFX(PeiCommonExceptionEntry)
87 # Switch to SVC for common stack
90 blx PeiCommonExceptionEntry
94 # Switch to SVC for common stack
97 blx PeiCommonExceptionEntry
101 # Switch to SVC for common stack
104 blx PeiCommonExceptionEntry