From: Leendert van Doorn <leend...@paramecium.org>

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Leo Duran <leo.du...@amd.com>
---
 EmbeddedPkg/Library/GdbDebugAgent/Arm/Processor.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/EmbeddedPkg/Library/GdbDebugAgent/Arm/Processor.c 
b/EmbeddedPkg/Library/GdbDebugAgent/Arm/Processor.c
index 61c6184..2b353f0 100644
--- a/EmbeddedPkg/Library/GdbDebugAgent/Arm/Processor.c
+++ b/EmbeddedPkg/Library/GdbDebugAgent/Arm/Processor.c
@@ -481,7 +481,7 @@ InFiqCrack (
   IN UINT32 PC
   )
 {
-  UINT32 VectorBase = PcdGet32 (PcdCpuVectorBaseAddress);
+  UINT64 VectorBase = PcdGet64 (PcdCpuVectorBaseAddress);
   UINT32 Length     = (UINTN)ExceptionHandlersEnd - 
(UINTN)ExceptionHandlersStart;
 
   if ((PC >= VectorBase) && (PC <= (VectorBase + Length))) {
@@ -626,7 +626,7 @@ InitializeDebugAgent (
   UINTN                Offset;
   UINTN                Length;
   BOOLEAN              IrqEnabled;
-  UINT32               *VectorBase;
+  UINT64               *VectorBase;
 
 
   //
@@ -644,7 +644,7 @@ InitializeDebugAgent (
   //
   // Reserve space for the exception handlers
   //
-  VectorBase = (UINT32 *)(UINTN)PcdGet32 (PcdCpuVectorBaseAddress);
+  VectorBase = (UINT64 *)(UINTN)PcdGet64 (PcdCpuVectorBaseAddress);
 
 
   // Copy our assembly code into the page that contains the exception vectors.
@@ -657,7 +657,7 @@ InitializeDebugAgent (
   *(UINTN *) (((UINT8 *)VectorBase) + Offset) = (UINTN)AsmCommonExceptionEntry;
 
   // Flush Caches since we updated executable stuff
-  InvalidateInstructionCacheRange ((VOID *)PcdGet32(PcdCpuVectorBaseAddress), 
Length);
+  InvalidateInstructionCacheRange ((VOID *)PcdGet64(PcdCpuVectorBaseAddress), 
Length);
 
   // setup a timer so gdb can break in via ctrl-c
   DebugAgentTimerIntialize ();
-- 
1.9.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to