]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 338022: Fix casts between 64-bit physical addresses and pointers in EFI.
authorjhb <jhb@FreeBSD.org>
Fri, 5 Oct 2018 21:10:03 +0000 (21:10 +0000)
committerjhb <jhb@FreeBSD.org>
Fri, 5 Oct 2018 21:10:03 +0000 (21:10 +0000)
commit03e5eed98baf9e98ab06143f25cbb0fad5bb88d1
tree94ae07d459edbe0eb3953f5fe59084702829e068
parent72b2b72f40c9c9ce562054334d53df35d44a6855
MFC 338022: Fix casts between 64-bit physical addresses and pointers in EFI.

Compiling FreeBSD/i386 with modern GCC triggers warnings for various
places that convert 64-bit EFI_ADDRs to pointers and vice versa.
- Cast pointers to uintptr_t rather than to uint64_t when assigning
  to a 64-bit integer.
- Cast 64-bit integers to uintptr_t before a cast to a pointer.
stand/efi/loader/arch/i386/efimd.c
stand/efi/loader/bootinfo.c
stand/efi/loader/copy.c