Make processes responsible for loading themselves.
[pintos-anon] / src / userprog / addrspace.h
index cf68189eb890f7f29d8d2c02835d48cea1268024..6e3b584a0f9c1bfe96877c2f12bdb7e69c00f234 100644 (file)
@@ -1,11 +1,10 @@
-#ifndef HEADER_ADDRSPACE_H
-#define HEADER_ADDRSPACE_H 1
+#ifndef USERPROG_ADDRSPACE_H
+#define USERPROG_ADDRSPACE_H
 
-#include <stdbool.h>
+#include "threads/thread.h"
 
-struct thread;
-bool addrspace_load (struct thread *, const char *, void (**start) (void));
+tid_t addrspace_execute (const char *filename);
 void addrspace_destroy (struct thread *);
-void addrspace_activate (struct thread *);
+void addrspace_activate (void);
 
-#endif /* addrspace.h */
+#endif /* userprog/addrspace.h */