From 6641d886aa52ed1b0dca71282b74b56ec8c308b6 Mon Sep 17 00:00:00 2001 From: tracer-ics2023 Date: Thu, 26 Sep 2024 15:13:09 +0800 Subject: [PATCH] =?UTF-8?q?>=20=20compile=20NEMU=20221220000=20=E5=BC=A0?= =?UTF-8?q?=E4=B8=89=20Linux=20zzy=205.15.146.1-microsoft-standard-WSL2=20?= =?UTF-8?q?#1=20SMP=20Thu=20Jan=2011=2004:09:03=20UTC=202024=20x86=5F64=20?= =?UTF-8?q?x86=5F64=20x86=5F64=20GNU/Linux=20=2015:13:09=20up=208=20days,?= =?UTF-8?q?=20=202:56,=20=201=20user,=20=20load=20average:=200.19,=200.22,?= =?UTF-8?q?=200.30?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nanos-lite/src/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nanos-lite/src/syscall.c b/nanos-lite/src/syscall.c index dc8f5cc..d54a156 100644 --- a/nanos-lite/src/syscall.c +++ b/nanos-lite/src/syscall.c @@ -44,7 +44,7 @@ void do_syscall(Context *c) { CASE(gettimeofday, c->GPRx = _gettimeofday((struct timeval*)a[1], (struct timezone*)a[2])) CASE(execve, c->GPRx = _execve((const char*)a[1], (char* const*)a[2], (char* const*)a[3])) CASE(brk, c->GPRx = _brk((void*)a[1])) - CASE(exit, halt(0)) + CASE(exit, _exit((int) a[1])) default: panic("Unhandled syscall ID = %d", a[0]); } }