> compile NEMU
221220000 张三 Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 15:18:27 up 5:32, 1 user, load average: 0.77, 0.59, 0.50
This commit is contained in:
@ -5,8 +5,8 @@ void __am_timer_init() {
|
||||
}
|
||||
|
||||
void __am_timer_uptime(AM_TIMER_UPTIME_T *uptime) {
|
||||
uint64_t res = inl(RTC_ADDR);
|
||||
putch('a');
|
||||
uint64_t res = inl(RTC_ADDR + 4);
|
||||
putch(res+'0');
|
||||
uptime->us = res;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user