projects
/
pintos-anon
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add references to tour of pintos.
[pintos-anon]
/
src
/
tests
/
userprog
/
sc-bad-sp.c
1
/* Invokes a system call with the stack pointer (%esp) set to a
2
bad address. The process must be terminated with -1 exit
3
code. */
4
5
#include "tests/lib.h"
6
#include "tests/main.h"
7
8
void
9
test_main (void)
10
{
11
asm volatile ("movl $0x20101234, %esp; int $0x30");
12
fail ("should have called exit(-1)");
13
}