projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add more tests.
[pintos-anon]
/
grading
/
userprog
/
child-bad.c
diff --git a/grading/userprog/child-bad.c
b/grading/userprog/child-bad.c
new file mode 100644
(file)
index 0000000..
a256e63
--- /dev/null
+++ b/
grading/userprog/child-bad.c
@@ -0,0
+1,11
@@
+#include <stdio.h>
+#include <syscall.h>
+
+int
+main (void)
+{
+ printf ("(child-bad) begin\n");
+ asm volatile ("mov $0xc0101234, %esp; int $0x30");
+ printf ("(child-bad) end\n");
+ return 0;
+}