Revert Intel-style assembly back to AT&T-style.
[pintos-anon] / src / tests / userprog / sc-bad-arg.c
index 2df966f3e623b8d03968652333d66001dace358a..b990468db3eb031fcbdd0674dc0202d18c3fdb61 100644 (file)
@@ -5,7 +5,7 @@
 void
 test_main (void) 
 {
-  asm volatile ("mov %%esp, 0xbffffffc; mov [dword ptr %%esp], %0; int 0x30"
+  asm volatile ("movl $0xbffffffc, %%esp; movl %0, (%%esp); int $0x30"
                 :: "i" (SYS_exit));
   fail ("should have called exit(-1)");
 }