summaryrefslogtreecommitdiff
path: root/Platform/Marvell/Applications
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-05-01 09:50:40 +0100
committerMarcin Wojtas <mw@semihalf.com>2017-10-05 16:42:30 +0200
commita46a211fe350c74b095f3d83781d778912ac1491 (patch)
tree9c58924e0c00d4fe33e3285124c8ea4e63b5c33b /Platform/Marvell/Applications
parent880e3d6cc4f30caf0af779a66e63007041b3cde1 (diff)
downloadedk2-platforms-a46a211fe350c74b095f3d83781d778912ac1491.tar.xz
Marvell/Applications/SpiTool: 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/Marvell/Applications')
-rw-r--r--Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c b/Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c
index e6e1007ced..9321f6b47f 100644
--- a/Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c
+++ b/Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c
@@ -211,7 +211,8 @@ EFI_STATUS Status;
LIST_ENTRY *CheckPackage;
EFI_PHYSICAL_ADDRESS Address = 0, Offset = 0;
SHELL_FILE_HANDLE FileHandle = NULL;
- UINTN ByteCount, FileSize, I;
+ UINTN ByteCount, I;
+ UINT64 FileSize;
UINT8 *Buffer = NULL, *FileBuffer = NULL;
CHAR16 *ProblemParam, *FilePath;
CONST CHAR16 *AddressStr = NULL, *OffsetStr = NULL;
@@ -418,7 +419,7 @@ EFI_STATUS Status;
}
}
- Buffer = (UINT8 *) Address;
+ Buffer = (UINT8 *)(UINTN)Address;
if (FileFlag) {
Buffer = FileBuffer;
}