projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed left-over, now-wrong comment about how decrease in numeric priority means incre...
[pintos-anon]
/
src
/
tests
/
userprog
/
sc-bad-sp.c
diff --git
a/src/tests/userprog/sc-bad-sp.c
b/src/tests/userprog/sc-bad-sp.c
index 8c42298d7df40149e343cf326ef408cb262913fb..56a5b8d4b8ee09a00a26875cfae44848215755d7 100644
(file)
--- a/
src/tests/userprog/sc-bad-sp.c
+++ b/
src/tests/userprog/sc-bad-sp.c
@@
-1,9
+1,13
@@
+/* Invokes a system call with the stack pointer (%esp) set to a
+ bad address. The process must be terminated with -1 exit
+ code. */
+
#include "tests/lib.h"
#include "tests/main.h"
void
test_main (void)
{
#include "tests/lib.h"
#include "tests/main.h"
void
test_main (void)
{
- asm volatile ("mov
%esp, 0x20101234; int
0x30");
+ asm volatile ("mov
l $0x20101234, %esp; int $
0x30");
fail ("should have called exit(-1)");
}
fail ("should have called exit(-1)");
}