Files
linux-kernel-module-cheat/userland/arch/x86_64/rdrand.S
Ciro Santilli 六四事件 法轮功 4d4b82f248 x86 asm: move rdrand from x86-assembly-cheat
2019-06-16 12:28:53 +01:00

12 lines
238 B
ArmAsm

/* https://github.com/cirosantilli/linux-kernel-module-cheat#x86-random-number-generator-instructions */
#include <lkmc.h>
LKMC_PROLOGUE
1:
rdrand %rdi
jnc 1b
call lkmc_print_hex_64
call lkmc_print_newline
LKMC_EPILOGUE