From 7230777561c559fb10c7bc0f6b42a696eef1a1b0 Mon Sep 17 00:00:00 2001
From: Alex Stratford <alexander3.stratford@live.uwe.ac.uk>
Date: Wed, 4 Dec 2019 12:47:53 +0000
Subject: [PATCH] Updated makefile and removed exit_thread() from syscall.c

---
 Makefile.build     | 1 +
 userprog/syscall.c | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.build b/Makefile.build
index 17d34f4..cd6c9f0 100644
--- a/Makefile.build
+++ b/Makefile.build
@@ -63,6 +63,7 @@ userprog_SRC += userprog/syscall.c	# System call handler.
 userprog_SRC += userprog/gdt.c		# GDT initialization.
 userprog_SRC += userprog/tss.c		# TSS management.
 userprog_SRC += userprog/syscall_exec.c
+userprog_SRC += userprog/syscall_exit.c
 userprog_SRC += userprog/syscall_open.c
 userprog_SRC += userprog/syscall_halt.c
 userprog_SRC += userprog/syscall_wait.c
diff --git a/userprog/syscall.c b/userprog/syscall.c
index 39901d9..bfd235f 100644
--- a/userprog/syscall.c
+++ b/userprog/syscall.c
@@ -60,7 +60,6 @@ syscall_handler (struct intr_frame *f UNUSED)
     break;
   case SYSCALL_EXIT:
     syscall_exit(f);
-    thread_exit();
     break;
   case SYSCALL_EXEC:
     syscall_exec(f);
-- 
GitLab