> 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 23:18:50 up 6 days, 18:24, 1 user, load average: 0.86, 0.96, 0.94
This commit is contained in:
@ -26,8 +26,8 @@ void do_syscall(Context *c) {
|
||||
switch (a[0]) {
|
||||
case SYS_yield: yield(); break;
|
||||
case SYS_write: c->GPRx = _write((int)a[1], (const char*)a[2], (size_t)a[3]); break;
|
||||
case SYS_brk: c->GPRx = _brk((void*)a[1]);
|
||||
case SYS_exit: halt(0); break;
|
||||
case SYS_brk: c->GPRx = _brk((void*)a[1]); break;
|
||||
case SYS_exit: halt(0); break;
|
||||
default: panic("Unhandled syscall ID = %d", a[0]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user