[Glibc-bsd-commits] r4605 - trunk/glibc-ports/kfreebsd/x86_64/fbtl
Petr Salinger
ps-guest at alioth.debian.org
Mon Jul 8 12:47:18 UTC 2013
Author: ps-guest
Date: 2013-06-25 07:40:03 +0000 (Tue, 25 Jun 2013)
New Revision: 4605
Modified:
trunk/glibc-ports/kfreebsd/x86_64/fbtl/exit-thread.S
Log:
__exit_thread with waking up
Modified: trunk/glibc-ports/kfreebsd/x86_64/fbtl/exit-thread.S
===================================================================
--- trunk/glibc-ports/kfreebsd/x86_64/fbtl/exit-thread.S 2013-06-25 07:18:14 UTC (rev 4604)
+++ trunk/glibc-ports/kfreebsd/x86_64/fbtl/exit-thread.S 2013-06-25 07:40:03 UTC (rev 4605)
@@ -19,8 +19,11 @@
.text
ENTRY (__exit_thread)
- movq %rdi, %rsi /* we might need it later */
- xorl %edi, %edi /* do not signal EOL into userland */
+ movq %rdi, %rsi /* we will need it later,
+ %rsi is saved by kernel */
+ mov %fs:0, %rdi
+ addq $TID, %rdi /* should be KTID, but
+ they are at the same place anyway */
DO_CALL (thr_exit, 1)
/* It does return only for last thread of process */
movq %rsi, %rdi /* use saved value */
More information about the Glibc-bsd-commits
mailing list