Change assembly from AT&T to Intel syntax.
[pintos-anon] / src / userprog / process.c
index 90ff18b14ddaae54563ee7d53d6c0cef538fe5aa..b9a199e64063f395924b535bfc545b4207cb4e4a 100644 (file)
@@ -75,10 +75,7 @@ execute_thread (void *filename_)
      arguments on the stack in the form of a `struct intr_frame',
      we just point the stack pointer (%esp) to our stack frame
      and jump to it. */
-  asm ("mov %0, %%esp\n"
-       "jmp intr_exit\n"
-       : /* no outputs */
-       : "g" (&if_));
+  asm ("mov %%esp, %0; jmp intr_exit" :: "g" (&if_));
   NOT_REACHED ();
 }