Change assembly from AT&T to Intel syntax.
[pintos-anon] / src / threads / thread.c
index 0a606b76d19dc4374fd84566e9bf9d861d346caa..01ce7d33227a19196762199f3c349bab4890b688 100644 (file)
@@ -312,7 +312,7 @@ running_thread (void)
      down to the start of a page.  Because `struct thread' is
      always at the beginning of a page and the stack pointer is
      somewhere in the middle, this locates the curent thread. */
-  asm ("movl %%esp, %0\n" : "=g" (esp));
+  asm ("mov %0, %%esp" : "=g" (esp));
   return pg_round_down (esp);
 }