diff options
author | Ahmad Khalifa <ahmadkhalifa570@gmail.com> | 2024-08-22 19:05:38 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2025-01-24 21:25:51 +0000 |
commit | b72ae900d4348118829fe04abdc11b620930c30f (patch) | |
tree | b30b87c599c4ad6fa4d399cc63a9bf4d375f628f /stand/common | |
parent | 3ad01642fe9e241124553f2f18fd365ffea5d20b (diff) |
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
Diffstat (limited to 'stand/common')
0 files changed, 0 insertions, 0 deletions