opnsense-src/sys/compat/linuxkpi/common/include
Ahmad Khalifa b72ae900d4 sys: make the kernel metadata pointer global
The way we got the kernel metadata pointer was by calling
preload_search_by_type with one of the following three: "elf kernel",
"elf32 kernel" and "elf64 kernel". Which one(s) we used wasn't
consistent though. Sometimes we would only try "elf kernel", and other
times we would try one of the latter two if the first failed. However,
the loader only ever sets "elf kernel" as the kernel type.

Now, the kmdp is a global, preload_kmdp, and it's initialized using
preload_initkmdp in machdep.c (or machdep_boot.c on arm/64).
preload_initkmdp takes a single boolean argument that tells us whether
not finding the kmdp is fatal or not.

Reviewed by: imp, kib
Pull Request: https://github.com/freebsd/freebsd-src/pull/1394
2025-01-24 14:25:51 -07:00
..
acpi LinuxKPI: Add acpi_dev_get_first_match_dev and acpi_device_handle 2024-07-21 16:09:37 +03:00
asm LinuxKPI: Add smp_store_release and smp_load_acquire functions 2024-06-26 23:44:37 +03:00
asm-generic linuxkpi: Add io.h 2022-08-08 15:22:35 +02:00
crypto LinuxKPI: add dummy hash.h and kernel_connect() 2023-05-12 11:21:10 +00:00
linux sys: make the kernel metadata pointer global 2025-01-24 14:25:51 -07:00
net LinuxKPI: 802.11: turn on debugfs for iwlwifi and rtw88 2025-01-07 18:07:09 +00:00
video LinuxKPI: update linuxkpi_video to Linux 6.6 2024-08-07 23:38:38 +03:00
xen LinuxKPI: Add xen/xen.h header 2023-12-24 11:19:58 +03:00
stdarg.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00