Add more tests.
[pintos-anon] / grading / userprog / sc-bad-sp.c
diff --git a/grading/userprog/sc-bad-sp.c b/grading/userprog/sc-bad-sp.c
new file mode 100644 (file)
index 0000000..9d996e9
--- /dev/null
@@ -0,0 +1,11 @@
+#include <stdio.h>
+#include <syscall.h>
+
+int
+main (void) 
+{
+  printf ("(sc-bad-sp) begin\n"); 
+  asm volatile ("mov $0xc0101234, %%esp; int $0x30");
+  printf ("(sc-bad-sp) end\n"); 
+  return 0;
+}