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 IMPORT PrePiCommonExceptionEntry
19 EXPORT PrePiVectorTable
22 AREA PrePeiCoreException, CODE, READONLY, CODEALIGN, ALIGN=5
24 //============================================================
25 //Default Exception Handlers
26 //============================================================
27 //TODO: there should be better way to handle the exceptions during the early stage. At the moment they are spinning in infinite loop
30 b _DefaultResetHandler
33 b _DefaultPrefetchAbort
40 // Default Exception handlers: There is no plan to return from any of these exceptions.
41 // No context saving at all.
45 cps #0x13 ; Switch to SVC for common stack
47 blx PrePiCommonExceptionEntry
51 cps #0x13 ; Switch to SVC for common stack
53 blx PrePiCommonExceptionEntry
57 cps #0x13 ; Switch to SVC for common stack
59 blx PrePiCommonExceptionEntry
63 cps #0x13 ; Switch to SVC for common stack
65 blx PrePiCommonExceptionEntry
69 cps #0x13 ; Switch to SVC for common stack
71 blx PrePiCommonExceptionEntry
75 cps #0x13 ; Switch to SVC for common stack
77 blx PrePiCommonExceptionEntry
81 cps #0x13 ; Switch to SVC for common stack
83 blx PrePiCommonExceptionEntry
87 cps #0x13 ; Switch to SVC for common stack
89 blx PrePiCommonExceptionEntry