From: Ulrich Drepper <drepper@redhat.com>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>, Andi Kleen <ak@suse.de>
Subject: Hammer thread fixes
Date: Sat, 15 Mar 2003 13:03:16 -0800 [thread overview]
Message-ID: <3E739514.8010300@redhat.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 531 bytes --]
The appended two fixes are necessary to get NPTL threads running on
hammer. The changes should be obvious. The exit_group syscall isn't
present at all so far and the r10 -> r8 register use is necessary
because syscall parameter #4 (in r10) is already used for the child_tid
parameter.
Linus, please apply.
--
--------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------
[-- Attachment #1.2: d-hammer-kernel --]
[-- Type: text/plain, Size: 923 bytes --]
--- ./arch/x86_64/kernel/process.c.ud 2003-03-10 19:00:56.000000000 -0800
+++ ./arch/x86_64/kernel/process.c 2003-03-15 12:52:17.000000000 -0800
@@ -314,7 +314,7 @@
err = ia32_child_tls(p, childregs);
else
#endif
- err = do_arch_prctl(p, ARCH_SET_FS, childregs->r10);
+ err = do_arch_prctl(p, ARCH_SET_FS, childregs->r8);
if (err)
goto out;
}
--- ./include/asm-x86_64/unistd.h.ud 2003-03-10 19:00:56.000000000 -0800
+++ ./include/asm-x86_64/unistd.h 2003-03-15 12:59:09.000000000 -0800
@@ -520,8 +520,10 @@
__SYSCALL(__NR_clock_getres, sys_clock_getres)
#define __NR_clock_nanosleep 230
__SYSCALL(__NR_clock_nanosleep, sys_clock_nanosleep)
+#define __NR_exit_group 231
+__SYSCALL(__NR_exit_group, sys_exit_group)
-#define __NR_syscall_max __NR_clock_nanosleep
+#define __NR_syscall_max __NR_exit_group
#ifndef __NO_STUBS
/* user-visible error numbers are in the range -1 - -4095 */
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2003-03-15 20:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-15 21:03 Ulrich Drepper [this message]
2003-03-15 21:24 ` Hammer thread fixes Andi Kleen
2003-03-15 22:25 ` Ulrich Drepper
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=3E739514.8010300@redhat.com \
--to=drepper@redhat.com \
--cc=ak@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/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