> 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:26:09 up  5:40,  1 user,  load average: 0.17, 0.27, 0.37
This commit is contained in:
tracer-ics2023
2024-09-12 15:26:09 +08:00
committed by zzy
parent 1b6d442c5d
commit 4801cb95aa

View File

@ -1,12 +1,11 @@
#include <am.h>
#include <nemu.h>
void __am_timer_init() {
void __am_timer_init() {
}
void __am_timer_uptime(AM_TIMER_UPTIME_T *uptime) {
uint64_t res = inl(RTC_ADDR + 4);
putch(res+'0');
uint64_t res = inl(RTC_ADDR + 8);
uptime->us = res;
}