> 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
 21:53:20 up 7 days,  6:50,  1 user,  load average: 0.78, 0.91, 0.92
This commit is contained in:
tracer-ics2023
2024-09-24 21:53:24 +08:00
committed by zzy
parent cdcfeb5036
commit 9fa5b282dd
2 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ size_t events_read(void *buf, size_t offset, size_t len) {
if (kb.keycode == AM_KEY_NONE) {
return 0;
}
TRACE("key %s\n", keyname[kb.keycode]);
return snprintf(buf, len, "%s %s\n", kb.keydown ? "kd" : "ku", keyname[kb.keycode]);
}

View File

@ -23,7 +23,7 @@ void do_syscall(Context *c) {
a[2] = c->GPR3;
a[3] = c->GPR4;
TRACE("syscall %d: %s", a[0], __syscall_names[a[0]]);
// TRACE("syscall %d: %s", a[0], __syscall_names[a[0]]);
switch (a[0]) {
CASE(yield, yield())