| f3c0d74e | 17-Apr-2025 |
Warner Losh <imp@FreeBSD.org> |
kboot: Implement data_from_kernel to read kernel variables
Since the linux kernel doesn't expose enough of the EFI details to userland via /sys/firmware/efi, write a routine to extract data from the
kboot: Implement data_from_kernel to read kernel variables
Since the linux kernel doesn't expose enough of the EFI details to userland via /sys/firmware/efi, write a routine to extract data from the kernel directly by parsing /proc/kproc and /proc/kallsyms.
Sponsored by: Netflix Reviewed by: kevans, jhibbits Differential Revision: https://reviews.freebsd.org/D49868
show more ...
|
| 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 ...
|
| b2bd8c9a | 09-Apr-2025 |
Warner Losh <imp@FreeBSD.org> |
kboot: Move str* util routines to libkboot
These are needed for the next round of EFI support for amd64 (partially shared with aarch64, but only partially because the Linux host interfaces are diffe
kboot: Move str* util routines to libkboot
These are needed for the next round of EFI support for amd64 (partially shared with aarch64, but only partially because the Linux host interfaces are different to get the same info).
Sponsored by: Netflix
show more ...
|
| 8f7327dc | 28-Jan-2024 |
Warner Losh <imp@FreeBSD.org> |
kboot: update copyright on these files.
host_syscalls.c: I've written, so put Netflix copyright on. It's possible in the confusion that Nathan wrote the host_gettimeofday implementation.
syscall_nr
kboot: update copyright on these files.
host_syscalls.c: I've written, so put Netflix copyright on. It's possible in the confusion that Nathan wrote the host_gettimeofday implementation.
syscall_nr: These files likely can't enjoy copyright protection since they are just facts (the per-arch Linux system calls), so add a note they are in the public domain.
Sponsored by: Netflix
show more ...
|