INTN StackDelta\r
);\r
\r
-TEMPORARY_RAM_SUPPORT_PPI mSecTemporaryRamSupportPpi = {SecTemporaryRamSupport};\r
+EFI_PEI_TEMPORARY_RAM_SUPPORT_PPI mSecTemporaryRamSupportPpi = {SecTemporaryRamSupport};\r
\r
EFI_PEI_PPI_DESCRIPTOR gSecPpiTable[] = {\r
{\r
return EFI_SUCCESS;\r
}\r
\r
-VOID PeiCommonExceptionEntry(UINT32 Entry, UINT32 LR) {\r
+VOID\r
+PeiCommonExceptionEntry (\r
+ IN UINT32 Entry,\r
+ IN UINT32 LR\r
+ )\r
+{\r
+ CHAR8 Buffer[100];\r
+ UINTN CharCount;\r
+\r
switch (Entry) {\r
case 0:\r
- DEBUG((EFI_D_ERROR,"Reset Exception at 0x%X\n",LR));\r
+ CharCount = AsciiSPrint (Buffer,sizeof (Buffer),"Reset Exception at 0x%X\n\r",LR);\r
break;\r
case 1:\r
- DEBUG((EFI_D_ERROR,"Undefined Exception at 0x%X\n",LR));\r
+ CharCount = AsciiSPrint (Buffer,sizeof (Buffer),"Undefined Exception at 0x%X\n\r",LR);\r
break;\r
case 2:\r
- DEBUG((EFI_D_ERROR,"SWI Exception at 0x%X\n",LR));\r
+ CharCount = AsciiSPrint (Buffer,sizeof (Buffer),"SWI Exception at 0x%X\n\r",LR);\r
break;\r
case 3:\r
- DEBUG((EFI_D_ERROR,"PrefetchAbort Exception at 0x%X\n",LR));\r
+ CharCount = AsciiSPrint (Buffer,sizeof (Buffer),"PrefetchAbort Exception at 0x%X\n\r",LR);\r
break;\r
case 4:\r
- DEBUG((EFI_D_ERROR,"DataAbort Exception at 0x%X\n",LR));\r
+ CharCount = AsciiSPrint (Buffer,sizeof (Buffer),"DataAbort Exception at 0x%X\n\r",LR);\r
break;\r
case 5:\r
- DEBUG((EFI_D_ERROR,"Reserved Exception at 0x%X\n",LR));\r
+ CharCount = AsciiSPrint (Buffer,sizeof (Buffer),"Reserved Exception at 0x%X\n\r",LR);\r
break;\r
case 6:\r
- DEBUG((EFI_D_ERROR,"IRQ Exception at 0x%X\n",LR));\r
+ CharCount = AsciiSPrint (Buffer,sizeof (Buffer),"IRQ Exception at 0x%X\n\r",LR);\r
break;\r
case 7:\r
- DEBUG((EFI_D_ERROR,"FIQ Exception at 0x%X\n",LR));\r
+ CharCount = AsciiSPrint (Buffer,sizeof (Buffer),"FIQ Exception at 0x%X\n\r",LR);\r
break;\r
default:\r
- DEBUG((EFI_D_ERROR,"Unknown Exception at 0x%X\n",LR));\r
+ CharCount = AsciiSPrint (Buffer,sizeof (Buffer),"Unknown Exception at 0x%X\n\r",LR);\r
break;\r
}\r
+ SerialPortWrite ((UINT8 *) Buffer, CharCount);\r
while(1);\r
}\r