#
92ad79ec |
| 17-Apr-2025 |
Warner Losh <imp@FreeBSD.org> |
kboot: Move common EFI stuff from aarch64 to libkboot
Move efi_read_from_pa, efi_set_systbl and efi_bi_loadsmap into efi.c Move prototype for populate_avail_from_efi as well, though that arrived pre
kboot: Move common EFI stuff from aarch64 to libkboot
Move efi_read_from_pa, efi_set_systbl and efi_bi_loadsmap into efi.c Move prototype for populate_avail_from_efi as well, though that arrived previously.
Move efi memory map variables into efi.c.
Add efi_read_from_sysfs, but if 0 it out. We'll want to use it if we can get the proposed /sys/firmware/efi/memmap data published in the same format and the code works, it's just that the current /sys/firmware/efi/runtime-memmap isn't complete enough to use.
Sponsored by: Netflix Reviewed by: kevans, jhibbits Differential Revision: https://reviews.freebsd.org/D49863
show more ...
|
#
988ee1cc |
| 17-Apr-2025 |
Warner Losh <imp@FreeBSD.org> |
kboot: Method to populate the avail array from EFI map
If we can get an efi memory map, populate_avail_from_efi will create an avail array. We only use the regiions marked as 'free' to find a place
kboot: Method to populate the avail array from EFI map
If we can get an efi memory map, populate_avail_from_efi will create an avail array. We only use the regiions marked as 'free' to find a place for the kernel to land. The other regions are also eligible, but usually too small to materially affect where we'd put the kernel (not to worry, the kernel will use that memory).
Sponsored by: Netflix Reviewed by: kevans, jhibbits Differential Revision: https://reviews.freebsd.org/D49862
show more ...
|
#
136d2dc0 |
| 09-Apr-2025 |
Warner Losh <imp@FreeBSD.org> |
kboot: Start to move efi common routines to libkboot
Start to move the common efi routines into libkboot by moving the efi memory map walking and implementing a printing routine around it.
Sponsore
kboot: Start to move efi common routines to libkboot
Start to move the common efi routines into libkboot by moving the efi memory map walking and implementing a printing routine around it.
Sponsored by: Netflix
show more ...
|