Received: by mail.netbsd.org (Postfix, from userid 605) id 5548B14A2AE; Tue, 17 Jan 2012 03:39:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 35CA114A2AB for ; Tue, 17 Jan 2012 03:39:35 +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 8-d-fHnAJNZD for ; Tue, 17 Jan 2012 03:39:34 +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 1818F14A2A1 for ; Tue, 17 Jan 2012 03:39:34 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id E2E3C175DD; Tue, 17 Jan 2012 03:39:33 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Tue, 17 Jan 2012 03:39:33 +0000 From: "Jonathan A. Kollasch" Subject: CVS commit: src/sys/arch/x86/x86 To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20120117033933.E2E3C175DD@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: "Jonathan A. Kollasch" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: jakllsch Date: Tue Jan 17 03:39:33 UTC 2012 Modified Files: src/sys/arch/x86/x86: via_padlock.c Log Message: In addition to %[er]ax, rep xstore-rng also clobbers %[er]cx and %[er]di. As such, mark them as outputs, as is done in the VIA Padlock example code. Additionally, let's assume that VIAC3_RNG_BUFSIZ is in bytes and not DWords. Furthermore assume that there are not 1 but NBBY bits of entropy per byte. Fixes PR kern/45847 for me. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/sys/arch/x86/x86/via_padlock.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.