Received: by mail.netbsd.org (Postfix, from userid 605) id 0CC1014A18A; Tue, 20 Dec 2011 13:17:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id CF57014A172 for ; Tue, 20 Dec 2011 13:17:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id DwkXo7pTrKYW for ; Tue, 20 Dec 2011 13:17:05 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 1BD2314A156 for ; Tue, 20 Dec 2011 13:17:05 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id A77B8175DD; Tue, 20 Dec 2011 13:17:05 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Tue, 20 Dec 2011 13:17:05 +0000 From: "Jared D. McNeill" Subject: CVS commit: src/sys/arch/amd64/amd64 To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20111220131705.A77B8175DD@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Jared D. McNeill" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: jmcneill Date: Tue Dec 20 13:17:05 UTC 2011 Modified Files: src/sys/arch/amd64/amd64: process_machdep.c Log Message: from http://www.freshbsd.org/commit/openbsd/ae7f934ae5bdf57dcf3431ba55fd1da93b8f1963 Initialize abridged tag word properly. x87 spec says FNINIT says tag word contains FFFFh (all stack locations empty) which would make abridged tag word 00h. From the Intel 64 and IA-32 Architectures Software Developer's Manual: "The FXSAVE instruction saves an abridged version of the x87 FPU tag word in the FTW field (unlike the FSAVE instruction, which saves the complete tag word). The tag information is saved in physical register order (R0 through R7), rather than in top-of- stack (TOS) order. With the FXSAVE instruction, however, only a single bit (1 for valid or 0 for empty) is saved for each tag." ok rmind@ To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/sys/arch/amd64/amd64/process_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.