> 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 18:07:44 up 2 days, 8:21, 1 user, load average: 0.39, 0.44, 0.36
This commit is contained in:
@ -17,11 +17,8 @@ void __am_timer_init() {
|
||||
}
|
||||
|
||||
void __am_timer_uptime(AM_TIMER_UPTIME_T *uptime) {
|
||||
volatile uint32_t lower_timer = inl(RTC_ADDR);
|
||||
volatile uint32_t high_timer = inl(RTC_ADDR + 4);
|
||||
volatile uint64_t timer = lower_timer + (((uint64_t) high_timer) << 32);
|
||||
(*(volatile AM_TIMER_UPTIME_T *)uptime).us = timer - __timer_start;
|
||||
PNT_BITS(uptime->us);
|
||||
(*(volatile AM_TIMER_UPTIME_T *)uptime).us = GET_TIME() - __timer_start;
|
||||
//PNT_BITS(uptime->us);
|
||||
}
|
||||
|
||||
void __am_timer_rtc(AM_TIMER_RTC_T *rtc) {
|
||||
|
Reference in New Issue
Block a user