DragonFly-2.3.2.272.gb8fb6 master sys/kern kern_linker.c link_aout.c link_elf.c vfs_syscalls.c sys/netgraph/netgraph ng_base.c sys/sys linker.h

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Aug 4 17:02:58 PDT 2009


commit b8fb634afadea6b66e03f56e4d4c8e3bb6f12c8a
Author: Matthew Dillon <dillon at 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





More information about the Commits mailing list