From owner-freebsd-mips@FreeBSD.ORG Sun Jan 2 07:39:55 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0016C1065672 for ; Sun, 2 Jan 2011 07:39:54 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 837B38FC1D for ; Sun, 2 Jan 2011 07:39:54 +0000 (UTC) Received: by wwi17 with SMTP id 17so13057552wwi.1 for ; Sat, 01 Jan 2011 23:39:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=qgln75p3zkXR+DbTbuMjlneqqG1qe7aJTEP8yZqd8Lk=; b=Fsovy0gX/XHM9Gkz+EiaKKDOQVhAQnw0n1IlRhrLAasTMYjA04EzKYYHdglH9Fwolj s2OCaJn2JMiVgXjSPDq9CqEi4JN/SofecHyDo9drg9rdSd6KgWQgaog8WberTV1O4iYe dAGUsbGArwUv6x+8FmQ9/CBj5D6t9QB75OVQw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=hMcJiK1zyPgMoryVBP5qLtnlxKqep5ik2Of1+QW+g+fM/OHnOULfAEGM5Y/ijZRWbk /kY7Pbo1XR4XJ4xoe0VnGio1bkK28DkoDQhO2jUXTEB+pXwhPku4HxPWDBBuUtnrTk2l E5jqvgx+TY5U1IwD/c1PensSCzjPhPfWndaN0= MIME-Version: 1.0 Received: by 10.227.16.100 with SMTP id n36mr3334102wba.160.1293953993382; Sat, 01 Jan 2011 23:39:53 -0800 (PST) Received: by 10.227.156.3 with HTTP; Sat, 1 Jan 2011 23:39:53 -0800 (PST) In-Reply-To: References: <4D1A1B83.5070602@bsdimp.com> <4D1A5142.5090205@bsdimp.com> Date: Sun, 2 Jan 2011 13:09:53 +0530 Message-ID: From: "Jayachandran C." To: Robert Millan Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: [PATCH] Retrieval of TLS pointer via RDHWR X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jan 2011 07:39:55 -0000 On Fri, Dec 31, 2010 at 8:36 PM, Robert Millan wrote: > 2010/12/28 Warner Losh : >> I reviewed the patch, and I liked it. =A0Couldn't find anything wrong wi= th it >> when I first looked at it. =A0Would be nice if things were more flexible= , but >> since generalizing from a sample size of one can be hard, I totally agre= e. > > Great. =A0So will someone commit this? :-) I will look at committing this. BTW, The netlogic(RMI) contributed code had a different implementation for this. The User Reserved Instruction exception had a fast path for RDHWR which used k0/k1 and returned the value without taking the full trap. I hadn't looked at adding that either (mostly because I did not see an immediate requirement). Another emulation missing in the kernel is for floating point... Regards, JC.