Change assembly from AT&T to Intel syntax.
[pintos-anon] / grading / userprog / sc-boundary.c
index 401e4374466e671c8b46eadbacc6cc91a49c494f..94c81b907cf1af7d80a3271aa071b651252d9ee8 100644 (file)
@@ -20,9 +20,7 @@ main (void)
   p--;
   p[0] = SYS_exit;
   p[1] = 42;
-  asm volatile ("mov %0, %%esp; int $0x30"
-                :
-                : "g" (p));
+  asm volatile ("mov %%esp, %0; int 0x30" :: "g" (p));
   printf ("(sc-boundary) failed\n");
   return 1;
 }