summaryrefslogtreecommitdiff
path: root/Platform
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-05-01 09:49:49 +0100
committerMarcin Wojtas <mw@semihalf.com>2017-10-05 16:42:19 +0200
commit880e3d6cc4f30caf0af779a66e63007041b3cde1 (patch)
treef659239f4d3c12006c011c56f2e6e220db1b1b51 /Platform
parent440821a4903d380b68e9f09ede73404e2fe2715b (diff)
downloadedk2-platforms-880e3d6cc4f30caf0af779a66e63007041b3cde1.tar.xz
Marvell/Applications/FirmwareUpdate: Fix 32-bit issues
Fix casting and related issues to make this code build for 32-bit ARM. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Marcin Wojtas <mw@semihalf.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'Platform')
-rw-r--r--Platform/Marvell/Applications/FirmwareUpdate/FUpdate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Platform/Marvell/Applications/FirmwareUpdate/FUpdate.c b/Platform/Marvell/Applications/FirmwareUpdate/FUpdate.c
index edb698610d..664411a97b 100644
--- a/Platform/Marvell/Applications/FirmwareUpdate/FUpdate.c
+++ b/Platform/Marvell/Applications/FirmwareUpdate/FUpdate.c
@@ -165,7 +165,7 @@ PrepareFirmwareImage (
IN LIST_ENTRY *CheckPackage,
IN OUT SHELL_FILE_HANDLE *FileHandle,
IN OUT UINTN **FileBuffer,
- IN OUT UINTN *FileSize
+ IN OUT UINT64 *FileSize
)
{
CONST CHAR16 *FileStr;
@@ -203,7 +203,7 @@ PrepareFirmwareImage (
// Read Image header into buffer
Buffer = AllocateZeroPool (*FileSize);
- Status = FileHandleRead (*FileHandle, FileSize, Buffer);
+ Status = FileHandleRead (*FileHandle, (UINTN *)FileSize, Buffer);
if (EFI_ERROR (Status)) {
Print (L"%s: Cannot read Image file header\n", CMD_NAME_STRING);
ShellCloseFile (FileHandle);
@@ -256,7 +256,7 @@ ShellCommandRunFUpdate (
{
IN SHELL_FILE_HANDLE FileHandle;
SPI_DEVICE *Slave;
- UINTN FileSize;
+ UINT64 FileSize;
UINTN *FileBuffer = NULL;
CHAR16 *ProblemParam;
LIST_ENTRY *CheckPackage;