From 4db0a014cd0c170fc7ee2a49a2bd7a00f610db9e Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Thu, 12 Sep 2024 13:08:12 -0400 Subject: [PATCH] impl SYS__exit --- kern/arch/mips/syscall/syscall.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kern/arch/mips/syscall/syscall.c b/kern/arch/mips/syscall/syscall.c index 14ff871..b42d9c0 100644 --- a/kern/arch/mips/syscall/syscall.c +++ b/kern/arch/mips/syscall/syscall.c @@ -105,6 +105,11 @@ void syscall(struct trapframe *tf) { err = sys___time((userptr_t)tf->tf_a0, (userptr_t)tf->tf_a1); break; + case SYS__exit: + err = 0; + thread_exit(); + break; + /* Add stuff here */ default: