Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 2013 12:57:20 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        svn-src-projects@freebsd.org, src-committers@freebsd.org, Mark Murray <markm@freebsd.org>
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/...
Message-ID:  <201310071257.20224.jhb@freebsd.org>
In-Reply-To: <20131004070521.GQ41229@kib.kiev.ua>
References:  <201310040655.r946t6ZR038091@svn.freebsd.org> <20131004070521.GQ41229@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310071257.20224.jhb>