]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/PrePeiCore/Arm/Exception.asm
BaseTools/Capsule: Do not support -o with --dump-info
[mirror_edk2.git] / ArmPlatformPkg / PrePeiCore / Arm / Exception.asm
CommitLineData
1d5d0ae9 1//\r
2// Copyright (c) 2011, ARM Limited. All rights reserved.\r
1d5d0ae9 3//\r
3402aac7
RC
4// This program and the accompanying materials\r
5// are licensed and made available under the terms and conditions of the BSD License\r
6// which accompanies this distribution. The full text of the license may be found at\r
7// http://opensource.org/licenses/bsd-license.php\r
8//\r
9// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
1d5d0ae9 11//\r
12//\r
13\r
1d5d0ae9 14#include <AutoGen.h>\r
15\r
16 IMPORT PeiCommonExceptionEntry\r
17 EXPORT PeiVectorTable\r
3402aac7 18\r
1d5d0ae9 19 PRESERVE8\r
20 AREA PrePeiCoreException, CODE, READONLY, CODEALIGN, ALIGN=5\r
21\r
a6caee65 22//============================================================\r
23//Default Exception Handlers\r
24//============================================================\r
3402aac7
RC
25\r
26\r
a6caee65 27PeiVectorTable\r
28 b _DefaultResetHandler\r
29 b _DefaultUndefined\r
30 b _DefaultSWI\r
31 b _DefaultPrefetchAbort\r
32 b _DefaultDataAbort\r
33 b _DefaultReserved\r
34 b _DefaultIrq\r
35 b _DefaultFiq\r
36\r
1d5d0ae9 37//\r
38// Default Exception handlers: There is no plan to return from any of these exceptions.\r
a6caee65 39// No context saving at all.\r
1d5d0ae9 40//\r
a6caee65 41_DefaultResetHandler\r
1d5d0ae9 42 mov r1, lr\r
a6caee65 43 cps #0x13 ; Switch to SVC for common stack\r
44 mov r0, #0\r
45 blx PeiCommonExceptionEntry\r
46\r
47_DefaultUndefined\r
1d5d0ae9 48 sub r1, LR, #4\r
a6caee65 49 cps #0x13 ; Switch to SVC for common stack\r
50 mov r0, #1\r
51 blx PeiCommonExceptionEntry\r
52\r
53_DefaultSWI\r
1d5d0ae9 54 sub r1, LR, #4\r
a6caee65 55 cps #0x13 ; Switch to SVC for common stack\r
56 mov r0, #2\r
57 blx PeiCommonExceptionEntry\r
58\r
59_DefaultPrefetchAbort\r
1d5d0ae9 60 sub r1, LR, #4\r
a6caee65 61 cps #0x13 ; Switch to SVC for common stack\r
62 mov r0, #3\r
63 blx PeiCommonExceptionEntry\r
64\r
65_DefaultDataAbort\r
1d5d0ae9 66 sub r1, LR, #8\r
a6caee65 67 cps #0x13 ; Switch to SVC for common stack\r
68 mov r0, #4\r
69 blx PeiCommonExceptionEntry\r
70\r
71_DefaultReserved\r
1d5d0ae9 72 mov r1, lr\r
a6caee65 73 cps #0x13 ; Switch to SVC for common stack\r
74 mov r0, #5\r
75 blx PeiCommonExceptionEntry\r
3402aac7 76\r
a6caee65 77_DefaultIrq\r
1d5d0ae9 78 sub r1, LR, #4\r
a6caee65 79 cps #0x13 ; Switch to SVC for common stack\r
80 mov r0, #6\r
81 blx PeiCommonExceptionEntry\r
82\r
83_DefaultFiq\r
1d5d0ae9 84 sub r1, LR, #4\r
a6caee65 85 cps #0x13 ; Switch to SVC for common stack\r
86 mov r0, #7\r
87 blx PeiCommonExceptionEntry\r
1d5d0ae9 88\r
89 END\r