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:
8
lkmc.c
8
lkmc.c
@@ -56,6 +56,14 @@ void lkmc_assert_memcmp(
|
||||
}
|
||||
}
|
||||
|
||||
void lkmc_print_hex_64(uint64_t x) {
|
||||
printf("0x%016" PRIx64, x);
|
||||
}
|
||||
|
||||
void lkmc_print_newline() {
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
#if defined(__aarch64__)
|
||||
#define LKMC_SYSREG_READ_WRITE(type, name) \
|
||||
type LKMC_CONCAT(LKMC_CONCAT(LKMC_SYSREG_SYMBOL_PREFIX, name), _read(void)) { \
|
||||
|
||||
Reference in New Issue
Block a user