Make processes responsible for loading themselves.
[pintos-anon] / src / threads / init.c
index 155ccae6adf1f2b50d2450bb6739a6b183c28498..1025172727e1682bc0a350c9dc52630986fa621f 100644 (file)
@@ -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 ();