summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi/libefi
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2006-11-03 04:19:31 +0000
committermarcel <marcel@FreeBSD.org>2006-11-03 04:19:31 +0000
commit5478f7099dc3551b7ef45a6e2fdb630bfb1bfbe9 (patch)
tree394b6d71fd88e7657e5b1b0c3d93116bfbb65295 /sys/boot/efi/libefi
parentc4a6a4c4a7ee591ee2a9dfe2e118918707e4797e (diff)
downloadFreeBSD-src-5478f7099dc3551b7ef45a6e2fdb630bfb1bfbe9.zip
FreeBSD-src-5478f7099dc3551b7ef45a6e2fdb630bfb1bfbe9.tar.gz
Make this compile on EFI32. The EFI_PHYSICAL_ADDRESS type is always
64-bit, even when sizeof(void *) is 32-bit.
Diffstat (limited to 'sys/boot/efi/libefi')
-rw-r--r--sys/boot/efi/libefi/libefi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/efi/libefi/libefi.c b/sys/boot/efi/libefi/libefi.c
index 563b533..20ea48c 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... */
OpenPOWER on IntegriCloud