mirror of
https://github.com/opnsense/src.git
synced 2026-06-06 07:12:52 -04:00
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 |
||
|---|---|---|
| .. | ||
| aarch64 | ||
| amd64 | ||
| i386 | ||
| x86 | ||
| hyperv.c | ||
| hyperv_busdma.c | ||
| hyperv_common_reg.h | ||
| hyperv_mmu.c | ||
| hyperv_mmu.h | ||
| hyperv_var.h | ||
| vmbus.c | ||
| vmbus_br.c | ||
| vmbus_brvar.h | ||
| vmbus_chan.c | ||
| vmbus_chanvar.h | ||
| vmbus_et.c | ||
| vmbus_if.m | ||
| vmbus_reg.h | ||
| vmbus_res.c | ||
| vmbus_var.h | ||
| vmbus_xact.c | ||