From owner-svn-src-projects@FreeBSD.ORG Mon Oct 7 16:57:57 2013 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0E4AA9D7; Mon, 7 Oct 2013 16:57:56 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BFDF821CA; Mon, 7 Oct 2013 16:57:56 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id E2CFFB95B; Mon, 7 Oct 2013 12:57:55 -0400 (EDT) From: John Baldwin To: Konstantin Belousov Subject: Re: svn commit: r256042 - in projects/random_number_generator: share/examples/kld/random_adaptor sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe sys/dev/syscons sys/dev/... Date: Mon, 7 Oct 2013 12:57:20 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) References: <201310040655.r946t6ZR038091@svn.freebsd.org> <20131004070521.GQ41229@kib.kiev.ua> In-Reply-To: <20131004070521.GQ41229@kib.kiev.ua> MIME-Version: 1.0 Message-Id: <201310071257.20224.jhb@freebsd.org> Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 07 Oct 2013 12:57:56 -0400 (EDT) Cc: svn-src-projects@freebsd.org, src-committers@freebsd.org, Mark Murray X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2013 16:57:57 -0000 On Friday, October 04, 2013 3:05:21 am Konstantin Belousov wrote: > On Fri, Oct 04, 2013 at 06:55:06AM +0000, Mark Murray wrote: > > #ifdef __amd64__ > > - ".byte\t0x48,0x0f,0xc7,0xf0\n\t" /* rdrand %rax */ > > + "rdrand\t%%rax\n\t" > > "jnc\t1f\n\t" > > "movq\t%%rax,%1\n\t" > > "movl\t$8,%%eax\n" > > #else /* i386 */ > > - ".byte\t0x0f,0xc7,0xf0\n\t" /* rdrand %eax */ > > + "rdrand\t%%eax\n\t" > > "jnc\t1f\n\t" > > "movl\t%%eax,%1\n\t" > > "movl\t$4,%%eax\n" > This should break the build with the in-tree binutils, i.e. when gcc > is used. The same for the chunks of the VIA asm. How hard would it be to just add rdrand to binutils? Ah, looks like dim@ just added it. I have a patch for amd64's DDB that I'll test locally. -- John Baldwin