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

8
lkmc.c
View File

@@ -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)) { \