From 880628ca6cd892b827d4187a2ecd3dc03e091247 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sun, 17 Jan 1999 20:28:12 +0000 Subject: [PATCH] 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. --- sys/gnu/i386/fpemul/fpu_entry.c | 36 +-------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/sys/gnu/i386/fpemul/fpu_entry.c b/sys/gnu/i386/fpemul/fpu_entry.c index 8482c2a5ad6..0db5288e4c1 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 */