From owner-p4-projects@FreeBSD.ORG Sun Feb 27 11:34:37 2005 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D529216A4D0; Sun, 27 Feb 2005 11:34:36 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D4D716A4CE for ; Sun, 27 Feb 2005 11:34:36 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 20A8443D3F for ; Sun, 27 Feb 2005 11:34:36 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j1RBYaDf085240 for ; Sun, 27 Feb 2005 11:34:36 GMT (envelope-from davidxu@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j1RBYZeY085237 for perforce@freebsd.org; Sun, 27 Feb 2005 11:34:35 GMT (envelope-from davidxu@freebsd.org) Date: Sun, 27 Feb 2005 11:34:35 GMT Message-Id: <200502271134.j1RBYZeY085237@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to davidxu@freebsd.org using -f From: David Xu To: Perforce Change Reviews Subject: PERFORCE change 71971 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Feb 2005 11:34:37 -0000 http://perforce.freebsd.org/chv.cgi?CH=71971 Change 71971 by davidxu@davidxu_alona on 2005/02/27 11:33:56 Style fixes. Don't include unneeded header files. Affected files ... .. //depot/projects/davidxu_thread/src/lib/libthread/arch/alpha/alpha/pthread_md.c#6 edit .. //depot/projects/davidxu_thread/src/lib/libthread/arch/amd64/amd64/pthread_md.c#4 edit .. //depot/projects/davidxu_thread/src/lib/libthread/arch/amd64/include/pthread_md.h#9 edit .. //depot/projects/davidxu_thread/src/lib/libthread/arch/i386/i386/pthread_md.c#6 edit .. //depot/projects/davidxu_thread/src/lib/libthread/arch/ia64/ia64/pthread_md.c#7 edit .. //depot/projects/davidxu_thread/src/lib/libthread/arch/powerpc/powerpc/pthread_md.c#5 edit .. //depot/projects/davidxu_thread/src/lib/libthread/arch/sparc64/sparc64/pthread_md.c#7 edit Differences ... ==== //depot/projects/davidxu_thread/src/lib/libthread/arch/alpha/alpha/pthread_md.c#6 (text+ko) ==== @@ -26,10 +26,9 @@ * $FreeBSD$ */ -#include - #include #include + #include "pthread_md.h" /* ==== //depot/projects/davidxu_thread/src/lib/libthread/arch/amd64/amd64/pthread_md.c#4 (text+ko) ==== @@ -26,9 +26,9 @@ * $FreeBSD$ */ -#include -#include -#include "rtld_tls.h" +#include +#include + #include "pthread_md.h" /* @@ -40,17 +40,13 @@ struct tcb *tcb; void *oldtls; - if (initial) { + if (initial) __asm __volatile("movq %%fs:0, %0" : "=r" (oldtls)); - } else { + else oldtls = NULL; - } - tcb = _rtld_allocate_tls(oldtls, sizeof(struct tcb), 16); - if (tcb) { + if (tcb) tcb->tcb_thread = thread; - } - return (tcb); } ==== //depot/projects/davidxu_thread/src/lib/libthread/arch/amd64/include/pthread_md.h#9 (text+ko) ==== @@ -26,6 +26,7 @@ * * $FreeBSD$ */ + /* * Machine-dependent thread prototypes/definitions for the thread kernel. */ ==== //depot/projects/davidxu_thread/src/lib/libthread/arch/i386/i386/pthread_md.c#6 (text+ko) ==== @@ -31,8 +31,8 @@ #include #include #include +#include -#include "rtld_tls.h" #include "pthread_md.h" struct tcb * ==== //depot/projects/davidxu_thread/src/lib/libthread/arch/ia64/ia64/pthread_md.c#7 (text+ko) ==== @@ -27,11 +27,9 @@ * $FreeBSD$ */ -#include -#include #include +#include -#include "rtld_tls.h" #include "pthread_md.h" /* ==== //depot/projects/davidxu_thread/src/lib/libthread/arch/powerpc/powerpc/pthread_md.c#5 (text+ko) ==== @@ -26,10 +26,9 @@ * $FreeBSD$ */ -#include -#include +#include +#include -#include "rtld_tls.h" #include "pthread_md.h" /* ==== //depot/projects/davidxu_thread/src/lib/libthread/arch/sparc64/sparc64/pthread_md.c#7 (text+ko) ==== @@ -29,10 +29,8 @@ */ #include -#include -#include +#include -#include "rtld_tls.h" #include "pthread_md.h" struct tcb *