fixed left-over, now-wrong comment about how decrease in numeric priority means incre...
[pintos-anon] / src / tests / userprog / sc-bad-sp.c
index 8c42298d7df40149e343cf326ef408cb262913fb..56a5b8d4b8ee09a00a26875cfae44848215755d7 100644 (file)
@@ -1,9 +1,13 @@
+/* Invokes a system call with the stack pointer (%esp) set to a
+   bad address.  The process must be terminated with -1 exit
+   code. */
+
 #include "tests/lib.h"
 #include "tests/main.h"
 
 void
 test_main (void) 
 {
-  asm volatile ("mov %esp, 0x20101234; int 0x30");
+  asm volatile ("movl $0x20101234, %esp; int $0x30");
   fail ("should have called exit(-1)");
 }