diff options
| author | Matthew Dillon <dillon@FreeBSD.org> | 1999-01-29 06:47:53 +0000 |
|---|---|---|
| committer | Matthew Dillon <dillon@FreeBSD.org> | 1999-01-29 06:47:53 +0000 |
| commit | 8e527f6c22c8f66b1761a548e12461c0a5fca531 (patch) | |
| tree | c37d8f0b64fc217449d274fb1810e1ca29be227f | |
| parent | a91f66d4f6374976fe02167150ba00bfda5fbd37 (diff) | |
Notes
| -rw-r--r-- | sys/sys/exec.h | 4 | ||||
| -rw-r--r-- | sys/sys/module.h | 10 |
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, |
