projects
/
pintos-anon
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add problem 1-1 solution.
[pintos-anon]
/
grading
/
userprog
/
sc-bad-arg.c
1
#include <stdio.h>
2
#include <syscall-nr.h>
3
4
int
5
main (void)
6
{
7
printf ("(sc-bad-arg) begin\n");
8
asm volatile ("mov $0xbffffffc, %%esp; movl %0, (%%esp); int $0x30"
9
:
10
: "i" (SYS_exit));
11
printf ("(sc-bad-arg) end\n");
12
return 0;
13
}