diff options
author | delphij <delphij@FreeBSD.org> | 2009-09-21 08:17:57 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2009-09-21 08:17:57 +0000 |
commit | fc497a4fc2accacc07b81af1bd635da98ff3dde8 (patch) | |
tree | cb7019657600dfa7d0c10d79abcf3cb3b894cfb6 /sys/contrib | |
parent | edc53d153b5637fe9db281e1172dc6fd3b12b7a7 (diff) | |
download | FreeBSD-src-fc497a4fc2accacc07b81af1bd635da98ff3dde8.zip FreeBSD-src-fc497a4fc2accacc07b81af1bd635da98ff3dde8.tar.gz |
Collapase interrupt supporting functions to a new module, and switch from
x86emu to this new module.
This changeset also brings a fix for bugs introduced with the initial
x86emu commit, which prevents the user from using some display mode or
cause instant reboots during mode switch.
Submitted by: paradox <ddkprog yahoo com>
Diffstat (limited to 'sys/contrib')
-rw-r--r-- | sys/contrib/x86emu/x86emu.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/sys/contrib/x86emu/x86emu.c b/sys/contrib/x86emu/x86emu.c index a26044a..e59ac33 100644 --- a/sys/contrib/x86emu/x86emu.c +++ b/sys/contrib/x86emu/x86emu.c @@ -33,10 +33,6 @@ * */ -#include <sys/param.h> -#include <sys/kernel.h> -#include <sys/module.h> - #include <contrib/x86emu/x86emu.h> #include <contrib/x86emu/x86emu_regs.h> @@ -8335,32 +8331,3 @@ pop_long(struct x86emu *emu) emu->x86.R_SP += 4; return res; } - -static int -x86emu_modevent(module_t mod __unused, int type, void *data __unused) -{ - int err = 0; - - switch (type) { - case MOD_LOAD: - break; - - case MOD_UNLOAD: - break; - - default: - err = ENOTSUP; - break; - - } - return (err); -} - -static moduledata_t x86emu_mod = { - "x86emu", - x86emu_modevent, - NULL, -}; - -DECLARE_MODULE(x86emu, x86emu_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST); -MODULE_VERSION(x86emu, 1); |