From owner-cvs-all Sat May 8 6: 2: 3 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 3FC071559C; Sat, 8 May 1999 06:02:01 -0700 (PDT) (envelope-from peter@FreeBSD.org) Received: (from peter@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id GAA02001; Sat, 8 May 1999 06:02:01 -0700 (PDT) (envelope-from peter@FreeBSD.org) Message-Id: <199905081302.GAA02001@freefall.freebsd.org> From: Peter Wemm Date: Sat, 8 May 1999 06:02:00 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_linker.c kern_module.c src/sys/sys module.h Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk peter 1999/05/08 06:02:00 PDT Modified files: sys/kern kern_linker.c kern_module.c sys/sys module.h Log: 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. Revision Changes Path 1.32 +12 -5 src/sys/kern/kern_linker.c 1.17 +33 -21 src/sys/kern/kern_module.c 1.11 +3 -4 src/sys/sys/module.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message