> 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 12:23:28 up 2 days, 2:37, 1 user, load average: 0.20, 0.34, 0.38
This commit is contained in:
@ -18,7 +18,7 @@ void __am_timer_init() {
|
||||
|
||||
void __am_timer_uptime(AM_TIMER_UPTIME_T *uptime) {
|
||||
(*(volatile AM_TIMER_UPTIME_T *)uptime).us = GET_TIME() - __timer_start;
|
||||
PNT_BITS(uptime->us);
|
||||
PNT_BITS(uptime->us);
|
||||
}
|
||||
|
||||
void __am_timer_rtc(AM_TIMER_RTC_T *rtc) {
|
||||
|
@ -16,8 +16,8 @@
|
||||
({ for (const char *p = s; *p; p++) putch(*p); })
|
||||
|
||||
#define io_read(reg) \
|
||||
({ reg##_T __io_param; \
|
||||
ioe_read(reg, &__io_param); \
|
||||
({ volatile reg##_T __io_param; \
|
||||
ioe_read(reg, (void*)&__io_param); \
|
||||
__io_param; })
|
||||
|
||||
#define io_write(reg, ...) \
|
||||
|
Reference in New Issue
Block a user