x86 asm: move rdrand from x86-assembly-cheat

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-06-16 00:00:00 +00:00
parent 4ee1e06299
commit 4d4b82f248
3 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
/* 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