Combine syscall code with final stack initialization code #32

Merged
td1223 merged 27 commits from read-only-exec into userprog-merge 2024-11-11 22:23:20 +00:00
Showing only changes of commit dca9d8f5a3 - Show all commits

View File

@@ -141,10 +141,15 @@ syscall_create (const char *file UNUSED, unsigned initial_size UNUSED)
} }
static bool static bool
syscall_remove (const char *file UNUSED) syscall_remove (const char *file)
{ {
//TODO validate_user_pointer (file, 1);
return 0;
lock_acquire (&filesys_lock);
bool status = filesys_remove (file);
lock_release (&filesys_lock);
return status;
} }
static int static int