Hello,
I have a server platform Intel R1208GZ4GC and E5-2620 processors. I'm trying to use RDRAND to generate random numbers. To put this code:
However, when compiling the error:
Operating system: FreeBsd FreeBSD 8.3
Updated files:
I recompiled the kernel and made a restart. But to no avail.
Help me, please.
I have a server platform Intel R1208GZ4GC and E5-2620 processors. I'm trying to use RDRAND to generate random numbers. To put this code:
Code:
int _rdrand16_step(unsigned short *therand) {
unsigned char err;
asm volatile("rdrand %0 ; setc %1"
: "=r" (*therand), "=qm" (err));
return (int) err;
}
Code:
{standard input}: Assembler messages:
{standard input}:7191: Error: no such instruction: `rdrand %dx'
gmake: *** [../../main/main.o] Error 1
Updated files:
- stable/8/sys/amd64/amd64/identcpu.c
- stable/8/sys/amd64/include/specialreg.h
- stable/8/sys/i386/conf/XENHVM
- stable/8/sys/i386/i386/identcpu.c
- stable/8/sys/i386/include/specialreg.h
I recompiled the kernel and made a restart. But to no avail.
Help me, please.