From owner-p4-projects@FreeBSD.ORG Wed Jan 31 00:16:39 2007 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 3708B16A402; Wed, 31 Jan 2007 00:16:39 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0339216A400 for ; Wed, 31 Jan 2007 00:16:39 +0000 (UTC) (envelope-from jkim@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id E9AC013C442 for ; Wed, 31 Jan 2007 00:16:38 +0000 (UTC) (envelope-from jkim@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l0V0Gc5c095664 for ; Wed, 31 Jan 2007 00:16:38 GMT (envelope-from jkim@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l0V0GccJ095661 for perforce@freebsd.org; Wed, 31 Jan 2007 00:16:38 GMT (envelope-from jkim@freebsd.org) Date: Wed, 31 Jan 2007 00:16:38 GMT Message-Id: <200701310016.l0V0GccJ095661@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jkim@freebsd.org using -f From: Jung-uk Kim To: Perforce Change Reviews Cc: Subject: PERFORCE change 113739 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jan 2007 00:16:39 -0000 http://perforce.freebsd.org/chv.cgi?CH=113739 Change 113739 by jkim@jkim_hammer on 2007/01/31 00:15:36 Do not reload %gs from linux_*sigcode(). This seem to fix TLS on amd64, finally. :-) Tested on UP and QEMU. Need more testing on SMP. Affected files ... .. //depot/projects/linuxolator/src/sys/amd64/linux32/linux32_locore.s#2 edit Differences ... ==== //depot/projects/linuxolator/src/sys/amd64/linux32/linux32_locore.s#2 (text+ko) ==== @@ -11,7 +11,9 @@ NON_GPROF_ENTRY(linux_sigcode) call *LINUX_SIGF_HANDLER(%esp) leal LINUX_SIGF_SC(%esp),%ebx /* linux scp */ +#if 0 movl LINUX_SC_GS(%ebx),%gs +#endif movl LINUX_SC_FS(%ebx),%fs movl LINUX_SC_ES(%ebx),%es movl LINUX_SC_DS(%ebx),%ds @@ -25,7 +27,9 @@ linux_rt_sigcode: call *LINUX_RT_SIGF_HANDLER(%esp) leal LINUX_RT_SIGF_UC(%esp),%ebx /* linux ucp */ +#if 0 movl LINUX_SC_GS(%ebx),%gs +#endif movl LINUX_SC_FS(%ebx),%fs movl LINUX_SC_ES(%ebx),%es movl LINUX_SC_DS(%ebx),%ds