mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
12 lines
231 B
ArmAsm
12 lines
231 B
ArmAsm
/* https://cirosantilli.com/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
|