2 * Main file supporting the transition to PEI Core in Normal World for Versatile Express
4 * Copyright (c) 2012-2013, ARM Limited. All rights reserved.
6 * This program and the accompanying materials
7 * are licensed and made available under the terms and conditions of the BSD License
8 * which accompanies this distribution. The full text of the license may be found at
9 * http://opensource.org/licenses/bsd-license.php
11 * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #include <Library/PrintLib.h>
17 #include <Library/SerialPortLib.h>
19 #include "PrePeiCore.h"
22 PeiCommonExceptionEntry (
31 case EXCEPT_AARCH64_SYNCHRONOUS_EXCEPTIONS
:
32 CharCount
= AsciiSPrint (Buffer
,sizeof (Buffer
),"Synchronous Exception at 0x%X\n\r", LR
);
34 case EXCEPT_AARCH64_IRQ
:
35 CharCount
= AsciiSPrint (Buffer
,sizeof (Buffer
),"IRQ Exception at 0x%X\n\r", LR
);
37 case EXCEPT_AARCH64_FIQ
:
38 CharCount
= AsciiSPrint (Buffer
,sizeof (Buffer
),"FIQ Exception at 0x%X\n\r", LR
);
40 case EXCEPT_AARCH64_SERROR
:
41 CharCount
= AsciiSPrint (Buffer
,sizeof (Buffer
),"SError/Abort Exception at 0x%X\n\r", LR
);
44 CharCount
= AsciiSPrint (Buffer
,sizeof (Buffer
),"Unknown Exception at 0x%X\n\r", LR
);
48 SerialPortWrite ((UINT8
*) Buffer
, CharCount
);