projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More to-do.
[pintos-anon]
/
grading
/
userprog
/
sc-bad-arg.c
diff --git
a/grading/userprog/sc-bad-arg.c
b/grading/userprog/sc-bad-arg.c
index 8bbd8eab7b36754acfd738bd71aa31026b04ec81..bfab37bba6ab33e1311dff2a604e45e3b2cfd1ed 100644
(file)
--- a/
grading/userprog/sc-bad-arg.c
+++ b/
grading/userprog/sc-bad-arg.c
@@
-5,9
+5,8
@@
int
main (void)
{
printf ("(sc-bad-arg) begin\n");
main (void)
{
printf ("(sc-bad-arg) begin\n");
- asm volatile ("mov $0xbffffffc, %%esp; movl $%0, (%%esp); int $0x30"
- :
- : "i" (SYS_exit));
+ asm volatile ("mov %%esp, 0xbffffffc; mov [dword ptr %%esp], %0; int 0x30"
+ :: "i" (SYS_exit));
printf ("(sc-bad-arg) end\n");
return 0;
}
printf ("(sc-bad-arg) end\n");
return 0;
}