From: Fenghua Yu <fenghua.yu@intel.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] Hook up getcpu system call for IA64
Date: Tue, 06 Feb 2007 00:07:57 +0000 [thread overview]
Message-ID: <20070206000757.GA32026@linux-os.sc.intel.com> (raw)
getcpu system call returns cpu# and node# on which this system call and its caller are running. This patch hooks up its implementation on IA64.
Thanks.
-Fenghua
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
diff -Nurp linux-2.6.git.orig/arch/ia64/kernel/entry.S linux-2.6.git/arch/ia64/kernel/entry.S
--- linux-2.6.git.orig/arch/ia64/kernel/entry.S 2007-01-26 16:41:32.000000000 -0800
+++ linux-2.6.git/arch/ia64/kernel/entry.S 2007-02-02 16:13:10.000000000 -0800
@@ -1610,5 +1610,7 @@ sys_call_table:
data8 sys_sync_file_range // 1300
data8 sys_tee
data8 sys_vmsplice
+ data8 sys_ni_syscall // reserved for move_pages
+ data8 sys_getcpu
.org sys_call_table + 8*NR_syscalls // guard against failures to increase NR_syscalls
diff -Nurp linux-2.6.git.orig/include/asm-ia64/unistd.h linux-2.6.git/include/asm-ia64/unistd.h
--- linux-2.6.git.orig/include/asm-ia64/unistd.h 2006-11-29 12:26:15.000000000 -0800
+++ linux-2.6.git/include/asm-ia64/unistd.h 2007-02-02 15:05:27.000000000 -0800
@@ -291,11 +291,13 @@
#define __NR_sync_file_range 1300
#define __NR_tee 1301
#define __NR_vmsplice 1302
+/* 1303 reserved for move_pages */
+#define __NR_getcpu 1304
#ifdef __KERNEL__
-#define NR_syscalls 279 /* length of syscall table */
+#define NR_syscalls 281 /* length of syscall table */
#define __ARCH_WANT_SYS_RT_SIGACTION
next reply other threads:[~2007-02-06 0:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-06 0:07 Fenghua Yu [this message]
2007-02-06 21:21 ` [PATCH] Hook up getcpu system call for IA64 Ken Chen
2007-02-06 21:32 ` Yu, Fenghua
2007-02-06 21:32 ` Luck, Tony
2007-02-06 22:02 ` Ken Chen
2007-02-07 18:00 ` Luck, Tony
2007-02-08 1:25 ` Zou, Nanhai
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=20070206000757.GA32026@linux-os.sc.intel.com \
--to=fenghua.yu@intel.com \
--cc=linux-ia64@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox