summaryrefslogtreecommitdiffstats
path: root/EmbeddedPkg
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-10-24 18:32:12 +0100
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2016-10-28 13:51:41 +0100
commit15d8747a5f0fea5f30d6d4f812f6aa3bbd4c5ba8 (patch)
tree87ceafdf4e170b4469729484095698c9744fe42f /EmbeddedPkg
parentff862823b8ce3374016434f33c53681831c121c2 (diff)
downloadedk2-15d8747a5f0fea5f30d6d4f812f6aa3bbd4c5ba8.tar.gz
edk2-15d8747a5f0fea5f30d6d4f812f6aa3bbd4c5ba8.tar.bz2
edk2-15d8747a5f0fea5f30d6d4f812f6aa3bbd4c5ba8.zip
EmbeddedPkg/GdbDebugAgent: fix VOID* cast of incorrect size
The result of PcdGet64() can only be cast to VOID* on 64-bit platforms, so add an intermediate UINTN cast to make this code build again on 32 bit. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'EmbeddedPkg')
-rw-r--r--EmbeddedPkg/Library/GdbDebugAgent/Arm/Processor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/EmbeddedPkg/Library/GdbDebugAgent/Arm/Processor.c b/EmbeddedPkg/Library/GdbDebugAgent/Arm/Processor.c
index 8226c80ab4..a43ff95d03 100644
--- a/EmbeddedPkg/Library/GdbDebugAgent/Arm/Processor.c
+++ b/EmbeddedPkg/Library/GdbDebugAgent/Arm/Processor.c
@@ -657,7 +657,7 @@ InitializeDebugAgent (
*(UINTN *) (((UINT8 *)VectorBase) + Offset) = (UINTN)AsmCommonExceptionEntry;
// Flush Caches since we updated executable stuff
- InvalidateInstructionCacheRange ((VOID *)PcdGet64(PcdCpuVectorBaseAddress), Length);
+ InvalidateInstructionCacheRange ((VOID *)(UINTN)PcdGet64(PcdCpuVectorBaseAddress), Length);
// setup a timer so gdb can break in via ctrl-c
DebugAgentTimerIntialize ();