56a5b8d4b8ee09a00a26875cfae44848215755d7
[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 }