> 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:51:19 up 6:05, 1 user, load average: 0.41, 0.46, 0.44
This commit is contained in:
@ -8,7 +8,7 @@ void __am_timer_init() {
|
||||
|
||||
void __am_timer_uptime(AM_TIMER_UPTIME_T *uptime) {
|
||||
uptime->us = ((uint64_t)inl(RTC_ADDR)) & (((uint64_t)inl(RTC_ADDR + 4)) << 32);
|
||||
uint64_t res = uptime->us;
|
||||
uint64_t res = inl(RTC_ADDR);
|
||||
put_us(res);
|
||||
putstr("|");
|
||||
}
|
||||
|
Reference in New Issue
Block a user