diff options
author | peter <peter@FreeBSD.org> | 1998-11-06 16:00:47 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-11-06 16:00:47 +0000 |
commit | 14abd13b5be1a0e260799c930645ad680fe8f0ad (patch) | |
tree | a0d7f5bfc7b7678b1d01a2720c2155d6b7cac1b1 /sys/i386 | |
parent | b5f83c161eae3fd27e934fe40a00f9f32869b1f9 (diff) | |
download | FreeBSD-src-14abd13b5be1a0e260799c930645ad680fe8f0ad.zip FreeBSD-src-14abd13b5be1a0e260799c930645ad680fe8f0ad.tar.gz |
Create an 'ibcs2' module so that scripts can tell if it's statically
linked in or needs to be loaded.
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/ibcs2/ibcs2_sysvec.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/sys/i386/ibcs2/ibcs2_sysvec.c b/sys/i386/ibcs2/ibcs2_sysvec.c index 2a10b0e..a11790d 100644 --- a/sys/i386/ibcs2/ibcs2_sysvec.c +++ b/sys/i386/ibcs2/ibcs2_sysvec.c @@ -27,10 +27,12 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: ibcs2_sysvec.c,v 1.7 1998/04/28 18:15:05 eivind Exp $ + * $Id: ibcs2_sysvec.c,v 1.8 1998/09/14 05:36:47 jdp Exp $ */ #include <sys/param.h> +#include <sys/kernel.h> +#include <sys/module.h> #include <sys/sysent.h> #include <sys/signalvar.h> #include <i386/ibcs2/ibcs2_syscall.h> @@ -58,3 +60,20 @@ struct sysentvec ibcs2_svr3_sysvec = { "IBCS2 COFF", NULL /* we don't have a COFF coredump function */ }; + +/* + * Create an "ibcs2" module that does nothing but allow checking for + * the presence of the subsystem. + */ +static int +ibcs2_modevent(module_t mod, modeventtype_t type, void *unused) +{ + /* Do not care */ + return 0; +} +moduledata_t ibcs2_mod = { + "ibcs2", + ibcs2_modevent, + 0 +}; +DECLARE_MODULE(ibcs2, ibcs2_mod, SI_SUB_PSEUDO, SI_ORDER_ANY); |