From owner-cvs-src@FreeBSD.ORG Sat Nov 6 03:28:27 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03D1816A4CE; Sat, 6 Nov 2004 03:28:27 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9DE443D1D; Sat, 6 Nov 2004 03:28:26 +0000 (GMT) (envelope-from peter@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id iA63SQHr055998; Sat, 6 Nov 2004 03:28:26 GMT (envelope-from peter@repoman.freebsd.org) Received: (from peter@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id iA63SQBH055997; Sat, 6 Nov 2004 03:28:26 GMT (envelope-from peter) Message-Id: <200411060328.iA63SQBH055997@repoman.freebsd.org> From: Peter Wemm Date: Sat, 6 Nov 2004 03:28:26 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/i386/gen _set_tp.c src/lib/libc/i386/sys Makefile.inc _amd64_get_fsbase.c _amd64_get_gsbase.c _amd64_set_fsbase.c _amd64_set_gsbase.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Nov 2004 03:28:27 -0000 peter 2004-11-06 03:28:26 UTC FreeBSD src repository Modified files: lib/libc/i386/gen _set_tp.c lib/libc/i386/sys Makefile.inc Added files: lib/libc/i386/sys _amd64_get_fsbase.c _amd64_get_gsbase.c _amd64_set_fsbase.c _amd64_set_gsbase.c Log: When building the custom i386 libraries for use on amd64 kernels, we can't use the i386_set_ldt() family of routines, because they are not implemented. Instead, use the recently exposed direct access sysarch routines for setting what %fs and %gs point to. Use this for the i386 TLS _set_tp() routine, but only when compiling to run as a 32 bit support binary for amd64 kernels. Revision Changes Path 1.2 +4 -0 src/lib/libc/i386/gen/_set_tp.c 1.28 +4 -0 src/lib/libc/i386/sys/Makefile.inc 1.1 +44 -0 src/lib/libc/i386/sys/_amd64_get_fsbase.c (new) 1.1 +44 -0 src/lib/libc/i386/sys/_amd64_get_gsbase.c (new) 1.1 +37 -0 src/lib/libc/i386/sys/_amd64_set_fsbase.c (new) 1.1 +37 -0 src/lib/libc/i386/sys/_amd64_set_gsbase.c (new)