From: "Søren Nøhr Christensen" <snc@cs.aau.dk>
To: linux-kernel@vger.kernel.org
Cc: umbrella@cs.aau.dk
Subject: Syscall trouble
Date: Tue, 30 Nov 2004 14:55:19 +0100 [thread overview]
Message-ID: <200411301455.19143.snc@cs.aau.dk> (raw)
Hi all!
I have implemented a systemcall against linux-2.6.8.1 using the following
patches:
--- linux-2.6.8.1-clean/arch/i386/kernel/entry.S 2004-08-14
12:55:09.000000000 +0200
+++ linux-2.6.8.1/arch/i386/kernel/entry.S 2004-11-30 14:48:36.000000000
+0100
@@ -887,4 +887,7 @@
.long sys_mq_getsetattr
.long sys_ni_syscall /* reserved for kexec */
+ .long sys_umb_set_child_restrictions
syscall_table_size=(.-sys_call_table)
--- linux-2.6.8.1-clean/include/asm-i386/unistd.h 2004-08-14
12:55:35.000000000 +0200
+++ linux-2.6.8.1/include/asm-i386/unistd.h 2004-11-30 14:48:36.000000000
+0100
@@ -290,8 +290,13 @@
#define __NR_mq_getsetattr (__NR_mq_open+5)
#define __NR_sys_kexec_load 283
-#define NR_syscalls 284
-
+#define __NR_umb_set_child_restrictions 284
+
+#define NR_syscalls 285
/* user-visible error numbers are in the range -1 - -124: see
<asm-i386/errno.h> */
#define __syscall_return(type, res) \
This works like a charm. If i apply this to linux-2.6.9 it does not work
anymore. The syscall is in kallsyms, but nothing happens when I call it.
Any suggestions?
What am I missing?
//snc
----------------
Søren Nøhr Christensen
Computer Science @ AAU
snc@cs.aau.dk
next reply other threads:[~2004-11-30 13:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-30 13:55 Søren Nøhr Christensen [this message]
2004-11-30 21:03 ` Syscall trouble Chris Wright
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200411301455.19143.snc@cs.aau.dk \
--to=snc@cs.aau.dk \
--cc=linux-kernel@vger.kernel.org \
--cc=umbrella@cs.aau.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.