]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Library/DebugAgentSymbolsBaseLib/DebugAgentSymbolsBaseLib.c
ArmPkg/DebugAgentSymbolsBaseLib: remove exception handling
[mirror_edk2.git] / ArmPkg / Library / DebugAgentSymbolsBaseLib / DebugAgentSymbolsBaseLib.c
index fe5fd5500c9b6eae1291301cc5c2bf1a0c3a1544..f47f4250d1e8d664053646f5eec4cb2ef6ee13ae 100644 (file)
@@ -14,7 +14,6 @@
 **/\r
 \r
 #include <Uefi.h>\r
-#include <Library/ArmLib.h>\r
 #include <Library/BaseLib.h>\r
 #include <Library/BaseMemoryLib.h>\r
 #include <Library/DebugLib.h>\r
@@ -259,7 +258,7 @@ GetImageContext (
   function and pass it into InitializeDebugAgent(). InitializeDebugAgent() is\r
   responsible to invoke the passing-in function at the end of InitializeDebugAgent().\r
 \r
-  If the parameter Function is not NULL, Debug Agent Libary instance will invoke it by\r
+  If the parameter Function is not NULL, Debug Agent Library instance will invoke it by\r
   passing in the Context to be its parameter.\r
 \r
   If Function() is NULL, Debug Agent Library instance will return after setup debug\r
@@ -283,13 +282,7 @@ InitializeDebugAgent (
   EFI_FFS_FILE_HEADER   *FfsHeader;\r
   PE_COFF_LOADER_IMAGE_CONTEXT  ImageContext;\r
 \r
-  // Now we've got UART, check the Debug Agent Vector Table\r
-  // Note: The AArch64 Vector table must be 2k-byte aligned - if this assertion fails ensure\r
-  // 'Align=4K' is defined into your FDF for this module.\r
-  ASSERT (((UINTN)DebugAgentVectorTable & ARM_VECTOR_TABLE_ALIGNMENT) == 0);\r
-  ArmWriteVBar ((UINTN)DebugAgentVectorTable);\r
-\r
-  // We use InitFlag to know if DebugAgent has been intialized from\r
+  // We use InitFlag to know if DebugAgent has been initialized from\r
   // Sec (DEBUG_AGENT_INIT_PREMEM_SEC) or PrePi (DEBUG_AGENT_INIT_POSTMEM_SEC)\r
   // modules\r
   if (InitFlag == DEBUG_AGENT_INIT_PREMEM_SEC) {\r