diff options
author | peter <peter@FreeBSD.org> | 1999-01-17 20:28:12 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-01-17 20:28:12 +0000 |
commit | 6722392bda6c6e1188d9bd184e27cc28eb8b2e20 (patch) | |
tree | ec1c33c611e99a45aeb5095737189356034de2a9 /sys/gnu | |
parent | ecc481a2191b9c546cf9287c373ab9a8f9b7b5b5 (diff) | |
download | FreeBSD-src-6722392bda6c6e1188d9bd184e27cc28eb8b2e20.zip FreeBSD-src-6722392bda6c6e1188d9bd184e27cc28eb8b2e20.tar.gz |
Remove LKM support, src/lkm that built it is gone and it never worked as an
LKM anyway. It does work as a preloaded KLD module though.
Diffstat (limited to 'sys/gnu')
-rw-r--r-- | sys/gnu/i386/fpemul/fpu_entry.c | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/sys/gnu/i386/fpemul/fpu_entry.c b/sys/gnu/i386/fpemul/fpu_entry.c index 8482c2a..0db5288 100644 --- a/sys/gnu/i386/fpemul/fpu_entry.c +++ b/sys/gnu/i386/fpemul/fpu_entry.c @@ -55,7 +55,7 @@ * * W. Metzenthen June 1994. * - * $Id: fpu_entry.c,v 1.17 1998/10/18 07:44:33 peter Exp $ + * $Id: fpu_entry.c,v 1.18 1998/11/15 15:33:50 bde Exp $ * */ @@ -483,38 +483,6 @@ if (--lookahead_limit) return (0); /* --pink-- */ } -#ifdef LKM -MOD_MISC(gnufpu); -static int -gnufpu_load(struct lkm_table *lkmtp, int cmd) -{ - if (pmath_emulate) { - printf("Math emulator already present\n"); - return EBUSY; - } - pmath_emulate = math_emulate; - return 0; -} - -static int -gnufpu_unload(struct lkm_table *lkmtp, int cmd) -{ - if (pmath_emulate != math_emulate) { - printf("Cannot unload another math emulator\n"); - return EACCES; - } - pmath_emulate = 0; - return 0; -} - -int -gnufpu_mod(struct lkm_table *lkmtp, int cmd, int ver) -{ - MOD_DISPATCH(gnufpu, lkmtp, cmd, ver, gnufpu_load, gnufpu_unload, - lkm_nullcmd); -} -#else /* !LKM */ - static int gnufpu_modevent(module_t mod, int type, void *unused) { @@ -549,5 +517,3 @@ moduledata_t gnufpumod = { 0 }; DECLARE_MODULE(gnufpu, gnufpumod, SI_SUB_DRIVERS, SI_ORDER_ANY); - -#endif /* LKM */ |