projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add "cscope" target.
[pintos-anon]
/
src
/
tests
/
vm
/
pt-grow-bad.c
diff --git
a/src/tests/vm/pt-grow-bad.c
b/src/tests/vm/pt-grow-bad.c
index d83890fb7c0252579d38c6fff77015d6d6e67a86..d4beba22ff50e06ff6a31bc4783061ce2abd92b3 100644
(file)
--- a/
src/tests/vm/pt-grow-bad.c
+++ b/
src/tests/vm/pt-grow-bad.c
@@
-1,3
+1,6
@@
+/* Read from an address 4,096 bytes below the stack pointer.
+ The process must be terminated with -1 exit code. */
+
#include <string.h>
#include "tests/arc4.h"
#include "tests/cksum.h"
#include <string.h>
#include "tests/arc4.h"
#include "tests/cksum.h"
@@
-7,7
+10,5
@@
void
test_main (void)
{
void
test_main (void)
{
- /* Read from an address 4,096 bytes below the stack pointer.
- Must kill the program. */
asm volatile ("movl -4096(%esp), %eax");
}
asm volatile ("movl -4096(%esp), %eax");
}