> 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
 22:15:23 up 6 days, 17:20,  1 user,  load average: 0.96, 0.84, 0.94
This commit is contained in:
tracer-ics2023
2024-09-23 22:15:25 +08:00
committed by zzy
parent decd01a127
commit 7acd4e3751

View File

@ -25,7 +25,7 @@ void do_syscall(Context *c) {
TRACE("syscall %d: %s | %d | %s | %d", a[0], __syscall_names[a[0]], a[1], a[2], a[3]);
switch (a[0]) {
case SYS_yield: yield(); break;
case SYS_write: c->GPRx = _write(a[1], (void*)a[2], a[3]); break;
case SYS_write: c->GPRx = _write(a[1], (void*)a[2], a[3]);
case SYS_exit: halt(0); break;
default: panic("Unhandled syscall ID = %d", a[0]);
}