DragonFly-2.3.2.272.gb8fb6 master sys/kern kern_linker.c link_ao

看板DFBSD_commit作者時間16年前 (2009/08/05 08:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit b8fb634afadea6b66e03f56e4d4c8e3bb6f12c8a Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Tue Aug 4 16:58:09 2009 -0700 kernel module loader - fix load dependencies from preload modules by kernel The boot loader is supposed to load module dependencies but it misses a few when e.g. 'snd_hda' is specified in loader.conf. This resulted in the kernel itself trying to load the missing dependencies, but the kernel was running the sysinits for those dependencies immediately during the preload stage instead of registering them. Pass a flag to the loader chain to register the sysinits instead of running them if a dependency is loaded during the preload stage. This fixes the problem. And also, by the way, the loader does not need to load dependencies any more (though it still does). Reported-by: corecode, swildner Summary of changes: sys/kern/kern_linker.c | 48 ++++++++++++++++++++++++++++++++------ sys/kern/link_aout.c | 21 +++++++++-------- sys/kern/link_elf.c | 20 ++++++++-------- sys/kern/vfs_syscalls.c | 2 +- sys/netgraph/netgraph/ng_base.c | 2 +- sys/sys/linker.h | 8 +++++- 6 files changed, 69 insertions(+), 32 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b8fb634afadea6b66e03f56e4d4c8e3bb6f12c8a -- DragonFly BSD source repository
文章代碼(AID): #1AUDC8C4 (DFBSD_commit)