> 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:36:14 up 6 days, 16:41, 1 user, load average: 0.54, 0.63, 0.64
This commit is contained in:
@ -9,8 +9,8 @@ void do_syscall(Context *c) {
|
||||
|
||||
Log("syscall %d: %s\n", a[0], __syscall_names[a[0]]);
|
||||
switch (a[0]) {
|
||||
case SYS_yield: yield();
|
||||
case SYS_exit: halt(0);
|
||||
case SYS_yield: yield(); break;
|
||||
case SYS_exit: halt(0); break;
|
||||
default: panic("Unhandled syscall ID = %d", a[0]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user