diff options
Diffstat (limited to 'usr/src/boot/sys/boot/efi/loader/bootinfo.c')
-rw-r--r-- | usr/src/boot/sys/boot/efi/loader/bootinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/boot/sys/boot/efi/loader/bootinfo.c b/usr/src/boot/sys/boot/efi/loader/bootinfo.c index 6c90871c06..81d648033b 100644 --- a/usr/src/boot/sys/boot/efi/loader/bootinfo.c +++ b/usr/src/boot/sys/boot/efi/loader/bootinfo.c @@ -300,7 +300,7 @@ bi_load_efi_data(struct preloaded_file *kfp) * memory map on a 16-byte boundary (the bootinfo block is page * aligned). */ - efihdr = (struct efi_map_header *)addr; + efihdr = (struct efi_map_header *)(uintptr_t)addr; mm = (void *)((uint8_t *)efihdr + efisz); sz = (EFI_PAGE_SIZE * pages) - efisz; |