From owner-freebsd-emulation@FreeBSD.ORG Sun Jan 21 18:54:47 2007 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EF7DC16A401; Sun, 21 Jan 2007 18:54:47 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by mx1.freebsd.org (Postfix) with ESMTP id 83CA513C441; Sun, 21 Jan 2007 18:54:47 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.8/8.13.7) with ESMTP id l0LIsk8e088300 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 21 Jan 2007 19:54:46 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id l0LIsjuj088299; Sun, 21 Jan 2007 19:54:45 +0100 (CET) Date: Sun, 21 Jan 2007 19:54:45 +0100 From: Divacky Roman To: jkim@freebsd.org Message-ID: <20070121185445.GA88090@stud.fit.vutbr.cz> References: <790a9fff0701211041j1176d00gd6dd75d0989cf4ec@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <790a9fff0701211041j1176d00gd6dd75d0989cf4ec@mail.gmail.com> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Cc: freebsd-emulation@freebsd.org Subject: Re: linuxolator: tls_test results amd64 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jan 2007 18:54:48 -0000 the tls_test program is at www.stud.fit.vutbr.cz/~xdivac02/tls_test.c On Sun, Jan 21, 2007 at 12:41:02PM -0600, Scot Hetzel wrote: > Divacky Roman asked me to update my sources to the latest P4 patches > and run the tls_test program. Below are the results: > > hp010 / # ./tls_test > > doing 1st set_thread_area(): > ====> got GDT selector: 0x0 --- TEST PASSED. > > reading first byte of [0x00000000] TLS: > ====> 123 --- TEST PASSED. > > doing 2nd set_thread_area(): > ====> got GDT selector: 0x4 --- TEST PASSED. > context-switching once ... > > reading first byte of 4K [0x0804aca0] TLS: > Segmentation fault (core dumped) this means that we are able to set up the TLS for the very first time but not any other time. can someone explain this?