]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
First stages of a module dependency cleanup. This part fixes a
authorpeter <peter@FreeBSD.org>
Sat, 8 May 1999 13:01:59 +0000 (13:01 +0000)
committerpeter <peter@FreeBSD.org>
Sat, 8 May 1999 13:01:59 +0000 (13:01 +0000)
commite1866010a11f0ab9a9b5b3ca6b12ee0e0ac13ff5
treef1eccaa4de460b2534627473986978168d12dc18
parentc845ce79190131c6408f2278bcca8c51db40c01b
First stages of a module dependency cleanup.  This part fixes a
particularly annoying hack, namely having the linker bash the moduledata
to set the container pointer, preventing it being const.  In the process,
a stack of warnings were fixed and will probably allow a revisit of the
const C_SYSINIT() changes.  This explicitly registers modules in files or
preload areas with the module system first, and let them initialize via
SYSINIT/DECLARE_MODULE later in their SI_ORDER_xxx order.  The kludge of
finding the containing file is no longer needed since the registration
of modules onto the modules list is done in the context of initializing
the linker file.
sys/kern/kern_linker.c
sys/kern/kern_module.c
sys/sys/module.h