From: deraadt Date: Sat, 28 Dec 2013 02:33:15 +0000 (+0000) Subject: Use preprocessor symbols where possible. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b5fca263e57406f2b9d0d44818adefd80df98999;p=openbsd Use preprocessor symbols where possible. --- 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 #include #include +#include -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 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 #include #include +#include -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