arm timer is working on QEMU gicv2!!!

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-08-09 00:00:00 +00:00
parent d2c39c280d
commit 975b15b814
3 changed files with 93 additions and 11 deletions

2
lkmc.c
View File

@@ -79,7 +79,7 @@ void lkmc_print_newline() {
__asm__ __volatile__("msr " #name ", %0" : : "r" (name) : ); \
} \
void LKMC_CONCAT(LKMC_CONCAT(LKMC_SYSREG_SYMBOL_PREFIX, print_), name)(void) { \
printf("name 0x%" PRIX ## nbits "\n", LKMC_CONCAT(LKMC_CONCAT(LKMC_SYSREG_SYMBOL_PREFIX, read_), name)()); \
printf(#name " 0x%" PRIX ## nbits "\n", LKMC_CONCAT(LKMC_CONCAT(LKMC_SYSREG_SYMBOL_PREFIX, read_), name)()); \
}
LKMC_SYSREG_OPS
#undef LKMC_SYSREG_READ_WRITE