#include <Library/BaseLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/PeCoffGetEntryPointLib.h>\r
+#include <Library/PrintLib.h>\r
#include <Library/ArmDisassemblerLib.h>\r
+#include <Library/SerialPortLib.h>\r
\r
#include <Guid/DebugImageInfoTable.h>\r
#include <Protocol/DebugSupport.h>\r
IN OUT EFI_SYSTEM_CONTEXT SystemContext\r
)\r
{\r
+ CHAR8 Buffer[100];\r
+ UINTN CharCount;\r
UINT32 DfsrStatus;\r
UINT32 IfsrStatus;\r
BOOLEAN DfsrWrite;\r
UINT32 PcAdjust = 0;\r
\r
- Print(L"\n%a Exception PC at 0x%08x CPSR 0x%08x ", gExceptionTypeString[ExceptionType], SystemContext.SystemContextArm->PC, SystemContext.SystemContextArm->CPSR);\r
+ CharCount = AsciiSPrint (Buffer,sizeof (Buffer),"\n%a Exception PC at 0x%08x CPSR 0x%08x ",\r
+ gExceptionTypeString[ExceptionType], SystemContext.SystemContextArm->PC, SystemContext.SystemContextArm->CPSR);\r
+ SerialPortWrite ((UINT8 *) Buffer, CharCount);\r
+\r
DEBUG_CODE_BEGIN ();\r
CHAR8 *Pdb;\r
UINT32 ImageBase;\r