mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
x86 asm: move rdrand from x86-assembly-cheat
This commit is contained in:
11
userland/arch/x86_64/rdrand.S
Normal file
11
userland/arch/x86_64/rdrand.S
Normal 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
|
||||
Reference in New Issue
Block a user