summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/stand
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-12-28 02:33:16 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-12-28 02:33:16 +0000
commit98401b3d72ebc82a4341cc155b7d120e09ec4453 (patch)
treeec98cf868e2d02eb3d091beb7dffc53986873c14 /sys/arch/amd64/stand
parentc332fcb7feaf43c00631c8620682890229c48604 (diff)
Use preprocessor symbols where possible.
Diffstat (limited to 'sys/arch/amd64/stand')
-rw-r--r--sys/arch/amd64/stand/libsa/random_i386.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/amd64/stand/libsa/random_i386.S b/sys/arch/amd64/stand/libsa/random_i386.S
index 2c7bbd04a2b..e53e548e729 100644
--- a/sys/arch/amd64/stand/libsa/random_i386.S
+++ b/sys/arch/amd64/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