]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Library/GdbDebugAgent/Arm/Processor.c
ArmPkg: drop ArmBds remnant Pcds from .dec
[mirror_edk2.git] / EmbeddedPkg / Library / GdbDebugAgent / Arm / Processor.c
index 61c6184fae7d2380e51da3f945a09bc288bc0662..a43ff95d03a30403cbbad52fc0c5ce4545f239db 100644 (file)
@@ -481,7 +481,7 @@ InFiqCrack (
   IN UINT32 PC\r
   )\r
 {\r
-  UINT32 VectorBase = PcdGet32 (PcdCpuVectorBaseAddress);\r
+  UINT64 VectorBase = PcdGet64 (PcdCpuVectorBaseAddress);\r
   UINT32 Length     = (UINTN)ExceptionHandlersEnd - (UINTN)ExceptionHandlersStart;\r
 \r
   if ((PC >= VectorBase) && (PC <= (VectorBase + Length))) {\r
@@ -603,7 +603,7 @@ GdbFPutString (
   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
@@ -626,7 +626,7 @@ InitializeDebugAgent (
   UINTN                Offset;\r
   UINTN                Length;\r
   BOOLEAN              IrqEnabled;\r
-  UINT32               *VectorBase;\r
+  UINT64               *VectorBase;\r
 \r
 \r
   //\r
@@ -644,7 +644,7 @@ InitializeDebugAgent (
   //\r
   // Reserve space for the exception handlers\r
   //\r
-  VectorBase = (UINT32 *)(UINTN)PcdGet32 (PcdCpuVectorBaseAddress);\r
+  VectorBase = (UINT64 *)(UINTN)PcdGet64 (PcdCpuVectorBaseAddress);\r
 \r
 \r
   // Copy our assembly code into the page that contains the exception vectors.\r
@@ -657,7 +657,7 @@ InitializeDebugAgent (
   *(UINTN *) (((UINT8 *)VectorBase) + Offset) = (UINTN)AsmCommonExceptionEntry;\r
 \r
   // Flush Caches since we updated executable stuff\r
-  InvalidateInstructionCacheRange ((VOID *)PcdGet32(PcdCpuVectorBaseAddress), Length);\r
+  InvalidateInstructionCacheRange ((VOID *)(UINTN)PcdGet64(PcdCpuVectorBaseAddress), Length);\r
 \r
   // setup a timer so gdb can break in via ctrl-c\r
   DebugAgentTimerIntialize ();\r