group/pintos/src/userprog/process.c
/* Sets up the CPU for running user code in the current
   thread.
   This function is called on every context switch. */
Sets up the CPU for running user code in the current
thread.
This function is called on every context switch.
Sets up the CPU for running user code in the current thread . This function is called on every context switch .
void
process_activate (void)
{
  struct thread *t = thread_current ();
  if (strcmp(t->name, "main") == 0)
      return;
  pagedir_activate (t->pagedir);
  tss_update ();
}
void process_activate ( void ) { struct thread * t = thread_current ( ) ; if ( strcmp ( t -> name , " " ) == 0 ) return ; pagedir_activate ( t -> pagedir ) ; tss_update ( ) ; }
Sets up the CPU for running user code in the current
thread.
Sets up the CPU for running user code in the current thread .
/* Activate thread's page tables. */ /* Set thread's kernel stack for use in processing
     interrupts. */