[Glibc-bsd-commits] r4573 - trunk/glibc-ports/kfreebsd/x86_64/fbtl
Petr Salinger
ps-guest at alioth.debian.org
Mon Jul 8 12:42:52 UTC 2013
Author: ps-guest
Date: 2013-06-22 18:44:19 +0000 (Sat, 22 Jun 2013)
New Revision: 4573
Added:
trunk/glibc-ports/kfreebsd/x86_64/fbtl/exit-thread.S
Log:
exit thread
Added: trunk/glibc-ports/kfreebsd/x86_64/fbtl/exit-thread.S
===================================================================
--- trunk/glibc-ports/kfreebsd/x86_64/fbtl/exit-thread.S (rev 0)
+++ trunk/glibc-ports/kfreebsd/x86_64/fbtl/exit-thread.S 2013-06-22 18:44:19 UTC (rev 4573)
@@ -0,0 +1,30 @@
+/* Copyright (C) 1991,92,97,99,2002 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <http://www.gnu.org/licenses/>. */
+
+#include <sysdep.h>
+
+ .text
+ENTRY (__exit_thread)
+ movq %rdi, %rsi /* we might need it later */
+ xorl %edi, %edi /* do not signal EOL into userland */
+ DO_CALL (thr_exit, 1)
+ /* It does return only for last thread of process */
+ movq %rsi, %rdi /* use saved value */
+ DO_CALL (exit, 1)
+ /* Shouldn't get here. */
+ hlt
+END (__exit_thread)
More information about the Glibc-bsd-commits
mailing list