opnsense-src/sys/dev/hyperv
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
..
hvsock sockets: make pr_shutdown fully protocol specific method 2024-01-16 10:30:37 -08:00
include sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
input Use bus_generic_detach instead of device_delete_children in detach 2025-01-02 13:24:28 -05:00
netvsc tcp: extend the use of the th_flags accessor function 2024-11-29 09:48:23 +01:00
pcib Replace calls to bus_generic_attach with bus_attach_children 2024-12-06 17:26:16 -05:00
storvsc sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
utilities sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
vmbus sys: make the kernel metadata pointer global 2025-01-24 14:25:51 -07:00