Re: [patch] threading fix, tid-2.5.47-A3

From: Ulrich Drepper (drepper@redhat.com)
Date: Sun Nov 17 2002 - 18:37:48 EST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ingo Molnar wrote:
> here are the my current TID-setting changes. It's now 3 clone flags:
>
> - CLONE_PARENT_SETTID
> [...]

BTW, this patch contains one little bug.

diff -u linux/arch/i386/kernel/process.c linux/arch/i386/kernel/process.c
- --- linux/arch/i386/kernel/process.c 2002-11-17 21:11:52.000000000 +0100
+++ linux/arch/i386/kernel/process.c 2002-11-17 21:11:52.000000000 +0100
@@ -516,7 +516,7 @@
        clone_flags = regs.ebx;
        newsp = regs.ecx;
        parent_tidptr = (int *)regs.edx;
- - child_tidptr = (int *)regs.esi;
+ child_tidptr = (int *)regs.edi;
        if (!newsp)
                newsp = regs.esp;
        p = do_fork(clone_flags & ~CLONE_IDLETASK, newsp, &regs, 0,
parent_tidptr, child_tidptr);

%esi is used for the TLS pointer.

- --
- --------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE92ChN2ijCOnn/RHQRAqUnAKCa4VHC6EtZCCtArHJ9qHcznA84kACgrGNG
0niSahEXQ5aGa0XrSLSwv7A=
=YpSY
-----END PGP SIGNATURE-----

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:20 EST