diff options
author | ed <ed@FreeBSD.org> | 2015-08-05 16:45:47 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2015-08-05 16:45:47 +0000 |
commit | e5253846382d51cfbf00775ba3aa3f40f5427d9c (patch) | |
tree | 0df020c6c4ec789fa22fb2e7bf7e0e8c5003652a /sys/compat | |
parent | 7bdbb524eb816b9c6fee47fc94bf48b6c42a516a (diff) | |
download | FreeBSD-src-e5253846382d51cfbf00775ba3aa3f40f5427d9c.zip FreeBSD-src-e5253846382d51cfbf00775ba3aa3f40f5427d9c.tar.gz |
Add DECLARE_MODULE() to the "cloudabi" kernel module.
This kernel module does not require any explicit initialization, but a
module declaration is needed to let the "cloudabi64" kernel module
automatically pull this in.
Obtained from: https://github.com/NuxiNL/freebsd
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/cloudabi/cloudabi_proc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/compat/cloudabi/cloudabi_proc.c b/sys/compat/cloudabi/cloudabi_proc.c index b071aa3..949e390 100644 --- a/sys/compat/cloudabi/cloudabi_proc.c +++ b/sys/compat/cloudabi/cloudabi_proc.c @@ -30,7 +30,9 @@ __FBSDID("$FreeBSD$"); #include <sys/capsicum.h> #include <sys/filedesc.h> #include <sys/imgact.h> +#include <sys/kernel.h> #include <sys/lock.h> +#include <sys/module.h> #include <sys/mutex.h> #include <sys/proc.h> #include <sys/signalvar.h> @@ -133,3 +135,12 @@ cloudabi_sys_proc_raise(struct thread *td, PROC_UNLOCK(p); return (0); } + +static moduledata_t cloudabi_module = { + "cloudabi", + NULL, + NULL +}; + +DECLARE_MODULE(cloudabi, cloudabi_module, SI_SUB_EXEC, SI_ORDER_ANY); +MODULE_VERSION(cloudabi, 1); |