diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-12-28 02:33:16 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-12-28 02:33:16 +0000 |
commit | 98401b3d72ebc82a4341cc155b7d120e09ec4453 (patch) | |
tree | ec98cf868e2d02eb3d091beb7dffc53986873c14 /sys/arch/i386/stand | |
parent | c332fcb7feaf43c00631c8620682890229c48604 (diff) |
Use preprocessor symbols where possible.
Diffstat (limited to 'sys/arch/i386/stand')
-rw-r--r-- | sys/arch/i386/stand/libsa/random_i386.S | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/i386/stand/libsa/random_i386.S b/sys/arch/i386/stand/libsa/random_i386.S index 2c7bbd04a2b..e53e548e729 100644 --- a/sys/arch/i386/stand/libsa/random_i386.S +++ b/sys/arch/i386/stand/libsa/random_i386.S @@ -17,8 +17,9 @@ #include <machine/param.h> #include <machine/asm.h> #include <machine/psl.h> +#include <machine/specialreg.h> -ENTRY(md_random) +ENTRY(mdrandom) // See if we have CPU identification. pushfl popl %eax @@ -55,7 +56,7 @@ ENTRY(md_random) shll $2, %edx xorl %edi, %edi - andl $0x40000000, %ecx // See if we have rdrand. + andl $CPUIDECX_RDRAND, %ecx // See if we have rdrand. jnz userand movl %edx, %ecx |