summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>1999-01-29 06:47:53 +0000
committerMatthew Dillon <dillon@FreeBSD.org>1999-01-29 06:47:53 +0000
commit8e527f6c22c8f66b1761a548e12461c0a5fca531 (patch)
treec37d8f0b64fc217449d274fb1810e1ca29be227f
parenta91f66d4f6374976fe02167150ba00bfda5fbd37 (diff)
Notes
-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 2ed6112c3b24..48a4eaf56af4 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 c8d855723d09..a5799954147a 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,