aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@linux.intel.com>2011-06-23 10:01:36 +0100
committerMatt Fleming <matt.fleming@linux.intel.com>2011-07-22 13:00:01 +0100
commit30e4b101a3ac06164354b780114da17ece4a4730 (patch)
tree4c0d5fefc47fc03831ef8b6903eaa62d2a6dae0d
parent933999e55549b4c005f62d35e702a324d6d6497d (diff)
downloadefilinux-30e4b101a3ac06164354b780114da17ece4a4730.tar.gz
efilinux: Correct the type of descr_version
descr_version should be UINT32, not UINTN. This obviously makes a difference on x86-64 where UINT32 is 32-bits and UINTN is 64-bits. Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
-rw-r--r--efilinux.h2
-rw-r--r--entry.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/efilinux.h b/efilinux.h
index fe85c0a..0571640 100644
--- a/efilinux.h
+++ b/efilinux.h
@@ -142,7 +142,7 @@ static inline EFI_STATUS free_pool(void *buffer)
*/
static inline EFI_STATUS
get_memory_map(UINTN *size, EFI_MEMORY_DESCRIPTOR *map, UINTN *key,
- UINTN *descr_size, UINTN *descr_version)
+ UINTN *descr_size, UINT32 *descr_version)
{
return uefi_call_wrapper(boot->GetMemoryMap, 5, size, map,
key, descr_size, descr_version);
diff --git a/entry.c b/entry.c
index dadb786..9964ffa 100644
--- a/entry.c
+++ b/entry.c
@@ -54,7 +54,7 @@ EFI_RUNTIME_SERVICES *runtime;
*/
static EFI_STATUS
memory_map(EFI_MEMORY_DESCRIPTOR **map_buf, UINTN *map_size,
- UINTN *map_key, UINTN *desc_size, UINTN *desc_version)
+ UINTN *map_key, UINTN *desc_size, UINT32 *desc_version)
{
EFI_STATUS err;