Add explanatory comments to userprog tests.
[pintos-anon] / src / tests / userprog / sc-boundary-2.c
index c287d248fbb8f1101633ba76196061784be8c8c6..de357fcb6f7cd332ec3f83178c89adac3c7db883 100644 (file)
@@ -1,3 +1,7 @@
+/* Invokes a system call with one byte of the system call's
+   argument on a separate page from the rest of the bytes.  This
+   must work. */
+
 #include <syscall-nr.h>
 #include "tests/userprog/boundary.h"
 #include "tests/lib.h"
@@ -13,6 +17,6 @@ test_main (void)
   p[1] = 67;
 
   /* Invoke the system call. */
-  asm volatile ("mov %%esp, %0; int 0x30" :: "g" (p));
+  asm volatile ("movl %0, %%esp; int $0x30" :: "g" (p));
   fail ("should have called exit(67)");
 }