1 /* Sticks a system call number (SYS_EXIT) at the very top of the
2 stack, then invokes a system call with the stack pointer
3 (%esp) set to its address. The process must be terminated
4 with -1 exit code because the argument to the system call
5 would be above the top of the user address space. */
7 #include <syscall-nr.h>
9 #include "tests/main.h"
14 asm volatile ("movl $0xbffffffc, %%esp; movl %0, (%%esp); int $0x30"
16 fail ("should have called exit(-1)");