X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pintos-anon;a=blobdiff_plain;f=src%2Fthreads%2Finit.c;h=1025172727e1682bc0a350c9dc52630986fa621f;hp=155ccae6adf1f2b50d2450bb6739a6b183c28498;hb=e49318880e6420e9b5a4ae9ffb986b49f89798e0;hpb=979d9e154fd0d644f65cac9cf20b379e107a8cee diff --git a/src/threads/init.c b/src/threads/init.c index 155ccae..1025172 100644 --- a/src/threads/init.c +++ b/src/threads/init.c @@ -21,6 +21,7 @@ #include "threads/test.h" #include "threads/thread.h" #ifdef USERPROG +#include "userprog/addrspace.h" #include "userprog/exception.h" #include "userprog/gdt.h" #include "userprog/syscall.h" @@ -112,7 +113,7 @@ main (void) if (initial_program != NULL) { printf ("\nExecuting '%s':\n", initial_program); - thread_execute (initial_program); + addrspace_execute (initial_program); } #else test ();