]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move KHELP_DECLARE_MOD_UMA later in the boot
authorAndrew Turner <andrew@FreeBSD.org>
Fri, 12 Nov 2021 18:28:18 +0000 (18:28 +0000)
committerAndrew Turner <andrew@FreeBSD.org>
Fri, 12 Nov 2021 18:56:58 +0000 (18:56 +0000)
commitae062ff2695f61e43e23e144db62cb251b2cf599
tree82ea1dbc60c735566ec3286e6a84b5c8f67c53a0
parent1817be481b8703ae86730b151a6f49cc3022930f
Move KHELP_DECLARE_MOD_UMA later in the boot

Both KHELP_DECLARE_MOD_UMA and the kernel linker SYSINIT to find
in-kernel modules run at SI_SUB_KLD, SI_ORDER_ANY. As the former
depends on the latter running first move it later in the boot,
to the new SI_SUB_KHELP. This ensures KHELP_DECLARE_MOD_UMA
module SYSINIT functions will be after the kernel linker.

Previously we may have received a panic similar to the following if
the order was incorrect:

panic: module_register_init: module named ertt not found

Reported by: bob prohaska <fbsd AT www.zefox.net>
Discussed with: imp, jhb
Sponsored by: The FreeBSD Foundation
sys/sys/kernel.h
sys/sys/module_khelp.h