Make this compile on EFI32. The EFI_PHYSICAL_ADDRESS type is always

64-bit, even when sizeof(void *) is 32-bit.
This commit is contained in:
Marcel Moolenaar 2006-11-03 04:19:31 +00:00
parent 5910f6cc85
commit aa08c7e56e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=163929

View file

@ -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... */