From owner-p4-projects@FreeBSD.ORG Sat Feb 26 13:13:54 2005 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 79C0A16A4D0; Sat, 26 Feb 2005 13:13:54 +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 0194116A4CE for ; Sat, 26 Feb 2005 13:13:54 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4D1043D55 for ; Sat, 26 Feb 2005 13:13:53 +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 j1QDDrpk087499 for ; Sat, 26 Feb 2005 13:13:53 GMT (envelope-from davidxu@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j1QDDr9L087496 for perforce@freebsd.org; Sat, 26 Feb 2005 13:13:53 GMT (envelope-from davidxu@freebsd.org) Date: Sat, 26 Feb 2005 13:13:53 GMT Message-Id: <200502261313.j1QDDr9L087496@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 71905 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: Sat, 26 Feb 2005 13:13:55 -0000 http://perforce.freebsd.org/chv.cgi?CH=71905 Change 71905 by davidxu@davidxu_tiger on 2005/02/26 13:13:34 Update comments. Affected files ... .. //depot/projects/davidxu_thread/src/lib/libthread/arch/alpha/include/pthread_md.h#6 edit .. //depot/projects/davidxu_thread/src/lib/libthread/arch/amd64/include/pthread_md.h#6 edit .. //depot/projects/davidxu_thread/src/lib/libthread/arch/i386/include/pthread_md.h#5 edit .. //depot/projects/davidxu_thread/src/lib/libthread/arch/ia64/include/pthread_md.h#7 edit .. //depot/projects/davidxu_thread/src/lib/libthread/arch/powerpc/include/pthread_md.h#4 edit .. //depot/projects/davidxu_thread/src/lib/libthread/arch/sparc64/include/pthread_md.h#6 edit Differences ... ==== //depot/projects/davidxu_thread/src/lib/libthread/arch/alpha/include/pthread_md.h#6 (text+ko) ==== @@ -34,6 +34,10 @@ #define DTV_OFFSET offsetof(struct tcb, tcb_dtv) +/* + * Variant I tcb. The structure layout is fixed, don't blindly + * change it! + */ struct tcb { void *tcb_dtv; struct pthread *tcb_thread; ==== //depot/projects/davidxu_thread/src/lib/libthread/arch/amd64/include/pthread_md.h#6 (text+ko) ==== @@ -44,14 +44,14 @@ struct tdv; /* - * %fs points to a struct tcb. + * Variant II tcb, first two members are required by rtld, + * %fs points to the structure. */ - struct tcb { struct tcb *tcb_self; /* required by rtld */ void *tcb_dtv; /* required by rtld */ struct pthread *tcb_thread; - void *tcb_spare[1]; /* align tcb_tmbx to 16 bytes */ + void *tcb_spare[1]; }; /* ==== //depot/projects/davidxu_thread/src/lib/libthread/arch/i386/include/pthread_md.h#5 (text+ko) ==== @@ -41,7 +41,8 @@ struct pthread; /* - * %gs points to a struct tcb. + * Variant II tcb, first two members are required by rtld, + * %gs points to the structure. */ struct tcb { struct tcb *tcb_self; /* required by rtld */ ==== //depot/projects/davidxu_thread/src/lib/libthread/arch/ia64/include/pthread_md.h#7 (text+ko) ==== @@ -33,6 +33,10 @@ #define DTV_OFFSET offsetof(struct tcb, tcb_dtv) +/* + * Variant I tcb. The structure layout is fixed, don't blindly + * change it! + */ struct tcb { void *tcb_dtv; struct pthread *tcb_thread; ==== //depot/projects/davidxu_thread/src/lib/libthread/arch/powerpc/include/pthread_md.h#4 (text+ko) ==== @@ -39,11 +39,10 @@ #define DTV_OFFSET offsetof(struct tcb, tcb_dtv) /* - * %r2 points to end of struct tcb. Variant I tls, the - * tcb structure layout is fixed, totally 8 bytes on 32 bits - * machine, don't change it. + * Variant I tcb. The structure layout is fixed, don't blindly + * change it. + * %r2 points to end of the structure. */ - struct tcb { void *tcb_dtv; struct pthread *tcb_thread; ==== //depot/projects/davidxu_thread/src/lib/libthread/arch/sparc64/include/pthread_md.h#6 (text+ko) ==== @@ -39,10 +39,15 @@ struct pthread; +/* + * Variant II tcb, first two members are required by rtld. + * %g7 points to the structure. + */ struct tcb { struct tcb *tcb_self; /* required by rtld */ void *tcb_dtv; /* required by rtld */ struct pthread *tcb_thread; /* our hook */ + void *tcb_spare[1]; }; register struct tcb *_tp __asm("%g7");