From aa08c7e56ec567d314ed289d8525fbefd2a0613b Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Fri, 3 Nov 2006 04:19:31 +0000 Subject: [PATCH] Make this compile on EFI32. The EFI_PHYSICAL_ADDRESS type is always 64-bit, even when sizeof(void *) is 32-bit. --- sys/boot/efi/libefi/libefi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/boot/efi/libefi/libefi.c b/sys/boot/efi/libefi/libefi.c index 563b533ab23..20ea48c1e5b 100644 --- a/sys/boot/efi/libefi/libefi.c +++ b/sys/boot/efi/libefi/libefi.c @@ -98,7 +98,7 @@ efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *system_table) if (status != EFI_SUCCESS) BS->Exit(IH, status, 0, NULL); - setheap((void *)heap, (void *)(heap + heapsize)); + setheap((void *)(uintptr_t)heap, (void *)(uintptr_t)(heap + heapsize)); /* Use exit() from here on... */