Blame SOURCES/0005-fallback.c-fix-32-bit-compilation.patch
|
|
f2fa6b |
From d74ab697f7f20418eeb09f0291cc480d43241dea Mon Sep 17 00:00:00 2001
|
|
|
f2fa6b |
From: Andrew Boie <andrew.p.boie@intel.com>
|
|
|
f2fa6b |
Date: Mon, 11 Nov 2013 16:12:23 -0800
|
|
|
e97c83 |
Subject: [PATCH 05/74] fallback.c: fix 32-bit compilation
|
|
|
f2fa6b |
|
|
|
f2fa6b |
fh->Read expects pointer to 32-bit int, use UINTN
|
|
|
f2fa6b |
|
|
|
f2fa6b |
Change-Id: If1a728efd51a9a24dfcd8123e84bf4c0713491fe
|
|
|
f2fa6b |
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
|
|
|
f2fa6b |
---
|
|
|
f2fa6b |
fallback.c | 4 ++--
|
|
|
f2fa6b |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
f2fa6b |
|
|
|
f2fa6b |
diff --git a/fallback.c b/fallback.c
|
|
|
f2fa6b |
index 82ddbf2..c875144 100644
|
|
|
f2fa6b |
--- a/fallback.c
|
|
|
f2fa6b |
+++ b/fallback.c
|
|
|
f2fa6b |
@@ -15,7 +15,7 @@
|
|
|
f2fa6b |
EFI_LOADED_IMAGE *this_image = NULL;
|
|
|
f2fa6b |
|
|
|
f2fa6b |
static EFI_STATUS
|
|
|
f2fa6b |
-get_file_size(EFI_FILE_HANDLE fh, UINT64 *retsize)
|
|
|
f2fa6b |
+get_file_size(EFI_FILE_HANDLE fh, UINTN *retsize)
|
|
|
f2fa6b |
{
|
|
|
f2fa6b |
EFI_STATUS rc;
|
|
|
f2fa6b |
void *buffer = NULL;
|
|
|
f2fa6b |
@@ -60,7 +60,7 @@ read_file(EFI_FILE_HANDLE fh, CHAR16 *fullpath, CHAR16 **buffer, UINT64 *bs)
|
|
|
f2fa6b |
return rc;
|
|
|
f2fa6b |
}
|
|
|
f2fa6b |
|
|
|
f2fa6b |
- UINT64 len = 0;
|
|
|
f2fa6b |
+ UINTN len = 0;
|
|
|
f2fa6b |
CHAR16 *b = NULL;
|
|
|
f2fa6b |
rc = get_file_size(fh2, &len;;
|
|
|
f2fa6b |
if (EFI_ERROR(rc)) {
|
|
|
f2fa6b |
--
|
|
|
e97c83 |
1.9.3
|
|
|
f2fa6b |
|