From f5331df75ea67802dfa253a805ab8ce051732fed Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Mon, 15 Nov 2021 00:51:02 +0100 Subject: [PATCH] TD2 I.6 implement do_ThreadExit --- code/userprog/userthread.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/userprog/userthread.cc b/code/userprog/userthread.cc index 2daf75f..8565913 100644 --- a/code/userprog/userthread.cc +++ b/code/userprog/userthread.cc @@ -56,5 +56,9 @@ int do_ThreadCreate(int f, int arg){ } void do_ThreadExit(){ + DEBUG('x', "Enter do_ThreadExit function\n"); + // TODO: what should we do with thread space? + // Probalely desallocate it... + currentThread->Finish(); } #endif