#include "threads/switch.h"
#include "threads/synch.h"
#ifdef USERPROG
-#include "userprog/addrspace.h"
+#include "userprog/process.h"
#include "userprog/gdt.h"
#endif
ASSERT (t != thread_current ());
#ifdef USERPROG
- addrspace_destroy (t);
+ process_destroy (t);
#endif
if (t != initial_thread)
palloc_free (t);
#ifdef USERPROG
/* Activate the new address space. */
- addrspace_activate ();
+ process_activate ();
#endif
/* If the thread we switched from is dying, destroy it.