2.1.18: Bad syscall number for new query_module syscall

Henrik Storner (storner@osiris.ping.dk)
Tue, 31 Dec 1996 13:43:09 +0100 (MET)


I already sent this to Linus and Richard, but for all the rest of
linux-kernel who cannot get the new alpha module-utilities to work:

include/asm-i386/unistd.h defines the wrong syscall number for the
new query_module syscall - it's set to 166, but should be 167 (166
is the improved vm86 syscall introduced in 2.1.15).

After patching you'll need to recompile Richard Henderson's alpha
module-utils. I still get some unresolved symbols, but at least
insmod behaves more reasonable.

BTW, anyone from the dosemu group want to comment on whether the old
or the new vm86 syscall should be named "vm86" ? To avoid name
clashes, perhaps the new vm86 syscall (166) should be "vm86plus" ...

--- linux/include/asm-i386/unistd.h.orig Tue Dec 31 11:47:31 1996
+++ linux/include/asm-i386/unistd.h Tue Dec 31 11:50:13 1996
@@ -118,7 +118,7 @@
#define __NR_iopl 110
#define __NR_vhangup 111
#define __NR_idle 112
-#define __NR_vm86 113
+#define __NR_vm86old 113
#define __NR_wait4 114
#define __NR_swapoff 115
#define __NR_sysinfo 116
@@ -171,7 +171,8 @@
#define __NR_mremap 163
#define __NR_setresuid 164
#define __NR_getresuid 165
-#define __NR_query_module 166
+#define __NR_vm86 166
+#define __NR_query_module 167

/* user-visible error numbers are in the range -1 - -122: see <asm-i386/errno.h> */

-- 
Henrik Storner <storner@osiris.ping.dk>  http://eolicom.olicom.dk/~storner/ 
"The POP3 server service depends on the SMTP server service, which
 failed to start because of the following error:
 The operation completed successfully." -Windows NT Server v3.51