coreboot-kgpe-d16/src/arch
Stefan Reinauer 0380e0a68e arch/x86: Make rdrand.c clang friendly
rdrand64() is not clang friendly. Actually it looks like the
function is incorrect on 32bit x86 for all compilers including
gcc, but gcc won't care because the function is never called on
x86:

src/arch/x86/rdrand.c:51:15: error: invalid output size for constraint '=a'
             : "=a" (*rand), "=qm" (carry));
                     ^
1 error generated.

Guard the code correctly if ENV_X86_64 is not set.

Change-Id: Ia565897f5e4caaaccfcb02cf1245b150272dff68
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: https://review.coreboot.org/20298
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
2017-06-22 04:11:02 +00:00
..
arm arch/arm/include/armv7/arch: Correct keyword organization in cpu.h 2017-06-02 18:31:03 +02:00
arm64 arch/arm: Correct checkpatch errors 2017-06-02 18:30:53 +02:00
mips arch: Unify basic cache clearing API 2017-05-30 22:19:50 +02:00
power8 arch: Unify basic cache clearing API 2017-05-30 22:19:50 +02:00
riscv src: change coreboot to lowercase 2017-06-07 12:09:15 +02:00
x86 arch/x86: Make rdrand.c clang friendly 2017-06-22 04:11:02 +00:00