cvs commit: src/sys/kern kern_linker.c src/sys/sys module.h src/sys/dev/netif/mii_layer mii.c

Matthew Dillon dillon at
Thu Nov 13 16:37:52 PST 2003

dillon      2003/11/13 16:37:24 PST

DragonFly src repository

  Modified files:
    sys/kern             kern_linker.c 
    sys/sys              module.h 
    sys/dev/netif/mii_layer mii.c 
  Bring in the MODULE_DEPEND() and DECLARE_MODULE() macros from FreeBSD-5.x.
  Instead of trying to bring in the 5.x kern/kern_loader.c and related code,
  which is a huge complex mess, instead properly declare the miibus module
  and check preload files against static in-kernel modules and ignore any
  preloaded modules that arleady exist in-kernel based on DECLARE_MODULE()
  matching up.
  This solves a problem where the bootloader attempts to load module
  dependancies along with their modules (e.g. if if_fxp is loaded then miibus
  is also loaded).  If the kernel already had a miibus module built in this
  resulted in two miibus modules which resulted in a crash.
  Revision  Changes    Path
  1.14      +49 -2     src/sys/kern/kern_linker.c
  1.4       +22 -8     src/sys/sys/module.h
  1.5       +6 -0      src/sys/dev/netif/mii_layer/mii.c

More information about the Commits mailing list