From 13bc50213bc87981f67ceabd7a623e05917fd09d Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 24 Mar 2007 01:01:06 +0000 Subject: [PATCH] Rename execute_thread() to start_process(). Thanks to Godmar Back for pointing out that it could be better named. --- src/threads/intr-stubs.S | 2 +- src/userprog/process.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/threads/intr-stubs.S b/src/threads/intr-stubs.S index b34c142..334d8cc 100644 --- a/src/threads/intr-stubs.S +++ b/src/threads/intr-stubs.S @@ -44,7 +44,7 @@ intr_entry: stack, and returns to the caller. This is a separate function because it is called directly when - we launch a new user process (see execute_thread() in + we launch a new user process (see start_process() in userprog/process.c). */ .globl intr_exit .func intr_exit diff --git a/src/userprog/process.c b/src/userprog/process.c index 675dc25..6c6003c 100644 --- a/src/userprog/process.c +++ b/src/userprog/process.c @@ -18,7 +18,7 @@ #include "threads/thread.h" #include "threads/vaddr.h" -static thread_func execute_thread NO_RETURN; +static thread_func start_process NO_RETURN; static bool load (const char *cmdline, void (**eip) (void), void **esp); /* Starts a new thread running a user program loaded from @@ -39,7 +39,7 @@ process_execute (const char *file_name) strlcpy (fn_copy, file_name, PGSIZE); /* Create a new thread to execute FILE_NAME. */ - tid = thread_create (file_name, PRI_DEFAULT, execute_thread, fn_copy); + tid = thread_create (file_name, PRI_DEFAULT, start_process, fn_copy); if (tid == TID_ERROR) palloc_free_page (fn_copy); return tid; @@ -48,7 +48,7 @@ process_execute (const char *file_name) /* A thread function that loads a user process and starts it running. */ static void -execute_thread (void *file_name_) +start_process (void *file_name_) { char *file_name = file_name_; struct intr_frame if_; -- 2.30.2