Use (uintptr_t) casts to cast the EFI_PHYSICAL_ADDDRESS to a pointer.
Fixes: afee781523e4 ("loader.efi: Recognize new memdisk=<url> and memcd=<url> options")
Sponsored by: Netflix
Differential D57893
loader.efi: Fix build with gcc due to pointer / int issues on 32-bit build Authored by imp on Fri, Jun 26, 7:58 PM.
Details Use (uintptr_t) casts to cast the EFI_PHYSICAL_ADDDRESS to a pointer. Fixes: afee781523e4 ("loader.efi: Recognize new memdisk=<url> and memcd=<url> options")
Diff Detail
Event TimelineComment Actions Logic LGTM. I guess we don't follow 80 column limit in this file? For my education: do we know in the 32-bit environment that physical addresses assuredly are below 4 GB? Comment Actions Yea. I don't care about 80 columns for the boot loader. It's obsolete and makes the code ugly. I usually wrap around 100 chars.. |