summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-01-29 06:47:53 +0000
committerdillon <dillon@FreeBSD.org>1999-01-29 06:47:53 +0000
commitd19f96ffcfae3de61c670a34f9fc2470b39751c1 (patch)
treef9d312f7402fffc1a68d3acb9bfbca7c12061ba0 /sys/sys
parentde76830961c5693554bdb2eb9332143ace09d660 (diff)
downloadFreeBSD-src-d19f96ffcfae3de61c670a34f9fc2470b39751c1.zip
FreeBSD-src-d19f96ffcfae3de61c670a34f9fc2470b39751c1.tar.gz
Have EXEC_SET use C_DECLARE_MODULE instead of DECLARE_MODULE.
Add C_DECLARE_MODULE - same as DECLARE_MODULE but uses C_SYSINIT instead of SYSINIT. The C_ items are going to be used for items passing const data to sysinit.
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/exec.h4
-rw-r--r--sys/sys/module.h10
2 files changed, 9 insertions, 5 deletions
diff --git a/sys/sys/exec.h b/sys/sys/exec.h
index 2ed6112..48a4eaf 100644
--- a/sys/sys/exec.h
+++ b/sys/sys/exec.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)exec.h 8.3 (Berkeley) 1/21/94
- * $Id: exec.h,v 1.20 1998/11/15 15:33:52 bde Exp $
+ * $Id: exec.h,v 1.21 1998/12/16 16:28:58 bde Exp $
*/
#ifndef _SYS_EXEC_H_
@@ -111,7 +111,7 @@ int exec_unregister __P((const struct execsw *));
name ## _modevent, \
(void *)& execsw_arg \
}; \
- DECLARE_MODULE(name, name ## _mod, SI_SUB_EXEC, SI_ORDER_ANY)
+ C_DECLARE_MODULE(name, name ## _mod, SI_SUB_EXEC, SI_ORDER_ANY)
#endif
#endif
diff --git a/sys/sys/module.h b/sys/sys/module.h
index c8d8557..a579995 100644
--- a/sys/sys/module.h
+++ b/sys/sys/module.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: module.h,v 1.7 1999/01/27 20:09:21 dillon Exp $
+ * $Id: module.h,v 1.8 1999/01/27 21:50:00 dillon Exp $
*/
#ifndef _SYS_MODULE_H_
@@ -64,8 +64,12 @@ typedef union modspecific {
#ifdef KERNEL
#define DECLARE_MODULE(name, data, sub, order) \
-SYSINIT(name##module, sub, order, module_register_init, &data) \
-struct __hack
+ SYSINIT(name##module, sub, order, module_register_init, &data) \
+ struct __hack
+
+#define C_DECLARE_MODULE(name, data, sub, order) \
+ C_SYSINIT(name##module, sub, order, module_register_init, &data) \
+ struct __hack
void module_register_init(void *data);
int module_register(const char *name, modeventhand_t callback, void *arg,
OpenPOWER on IntegriCloud