opnsense-src/sys/dev/hyperv/vmbus
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
..
aarch64 sys: Use the new arm_smccc_invoke macros 2024-10-15 18:24:41 +01:00
amd64 sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
i386 sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
x86 sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
hyperv.c Hyper-V: TLB flush enlightment using hypercall 2024-06-07 07:56:07 +00:00
hyperv_busdma.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
hyperv_common_reg.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
hyperv_mmu.c hyperv: call smp_targeted_tlb_shootdown_native() with pin 2024-10-01 14:45:23 +03:00
hyperv_mmu.h Hyper-V: TLB flush enlightment using hypercall 2024-06-07 07:56:07 +00:00
hyperv_var.h Hyper-V: TLB flush enlightment using hypercall 2024-06-07 07:56:07 +00:00
vmbus.c sys: make the kernel metadata pointer global 2025-01-24 14:25:51 -07:00
vmbus_br.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
vmbus_brvar.h Hyper-V: vmbus: check if signaling host is needed in vmbus_rxbr_read 2023-10-20 09:15:21 +00:00
vmbus_chan.c Deprecate contigfree(9) in favour of free(9) 2024-07-26 10:45:01 +00:00
vmbus_chanvar.h Deprecate contigfree(9) in favour of free(9) 2024-07-26 10:45:01 +00:00
vmbus_et.c newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY 2024-07-24 22:22:58 -06:00
vmbus_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
vmbus_reg.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
vmbus_res.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
vmbus_var.h Retire non-NEW_PCIB code and remove config option 2024-07-18 18:55:12 +01:00
vmbus_xact.c Deprecate contigfree(9) in favour of free(9) 2024-07-26 10:45:01 +00:00