mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
ff862823b8
commit
15d8747a5f
|
@ -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 ();
|
||||
|
|
Loading…
Reference in New Issue