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 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #include <Library/PrintLib.h>
11 #include <Library/SerialPortLib.h>
13 #include "PrePeiCore.h"
16 PeiCommonExceptionEntry (
25 case EXCEPT_AARCH64_SYNCHRONOUS_EXCEPTIONS
:
26 CharCount
= AsciiSPrint (Buffer
, sizeof (Buffer
), "Synchronous Exception at 0x%X\n\r", LR
);
28 case EXCEPT_AARCH64_IRQ
:
29 CharCount
= AsciiSPrint (Buffer
, sizeof (Buffer
), "IRQ Exception at 0x%X\n\r", LR
);
31 case EXCEPT_AARCH64_FIQ
:
32 CharCount
= AsciiSPrint (Buffer
, sizeof (Buffer
), "FIQ Exception at 0x%X\n\r", LR
);
34 case EXCEPT_AARCH64_SERROR
:
35 CharCount
= AsciiSPrint (Buffer
, sizeof (Buffer
), "SError/Abort Exception at 0x%X\n\r", LR
);
38 CharCount
= AsciiSPrint (Buffer
, sizeof (Buffer
), "Unknown Exception at 0x%X\n\r", LR
);
42 SerialPortWrite ((UINT8
*)Buffer
, CharCount
);