Message ID | 20190114170205.9748-6-ard.biesheuvel@linaro.org |
---|---|
State | New |
Headers | show |
Series | Silicon/SynQuacer: add support for 32-bit mode | expand |
diff --git a/Silicon/Socionext/SynQuacer/Library/SynQuacerMemoryInitPeiLib/SynQuacerMemoryInitPeiLib.c b/Silicon/Socionext/SynQuacer/Library/SynQuacerMemoryInitPeiLib/SynQuacerMemoryInitPeiLib.c index 3955b6df84a0..19151b93d571 100644 --- a/Silicon/Socionext/SynQuacer/Library/SynQuacerMemoryInitPeiLib/SynQuacerMemoryInitPeiLib.c +++ b/Silicon/Socionext/SynQuacer/Library/SynQuacerMemoryInitPeiLib/SynQuacerMemoryInitPeiLib.c @@ -201,7 +201,7 @@ CheckCapsule ( // Coalesce the capsule into unused memory. CreateState() below will copy // it to a properly allocated buffer. // - *CapsuleBuffer = (VOID *)PcdGet64 (PcdSystemMemoryBase); + *CapsuleBuffer = (VOID *)(UINTN)PcdGet64 (PcdSystemMemoryBase); *CapsuleBufferLength = UefiMemoryBase - PcdGet64 (PcdSystemMemoryBase); PeiServicesSetBootMode (BOOT_ON_FLASH_UPDATE);
Add a missing intermediate UINTN case to fix the 32-bit build. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> --- Silicon/Socionext/SynQuacer/Library/SynQuacerMemoryInitPeiLib/SynQuacerMemoryInitPeiLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel