DragonFly BSD
DragonFly commits List (threaded) for 2003-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 13 Nov 2003 16:37:24 -0800 (PST)

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 
  Log:
  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


http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_linker.c.diff?r1=1.13&r2=1.14&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/sys/module.h.diff?r1=1.3&r2=1.4&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/mii_layer/mii.c.diff?r1=1.4&r2=1.5&f=h



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]