--=_courier-19732-1047762245-0001-2
Content-Type: multipart/mixed;
boundary="------------030203030303060605030906"
This is a multi-part message in MIME format.
--------------030203030303060605030906
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
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 `-----------------------------------------030203030303060605030906 Content-Type: text/plain; name="d-hammer-kernel" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="d-hammer-kernel"
--- ./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 */
--------------030203030303060605030906--
--=_courier-19732-1047762245-0001-2 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+c5UU2ijCOnn/RHQRAvXHAJoCK/p3qLqNPXbXh+BcEVhPw0fQcQCfXbtk OcCJZFSUpf7SL1c9mqWuHM8= =DZ/r -----END PGP SIGNATURE-----
--=_courier-19732-1047762245-0001-2--