PKUOS - Pintos
Pintos source browser for PKU Operating System course
|
Go to the source code of this file.
Functions | |
void | test_main (void) |
Sticks a system call number (SYS_EXIT) at the very top of the stack, then invokes a system call with the stack pointer (esp) set to its address. More... | |
void test_main | ( | void | ) |
Sticks a system call number (SYS_EXIT) at the very top of the stack, then invokes a system call with the stack pointer (esp) set to its address.
The process must be terminated with -1 exit code because the argument to the system call would be above the top of the user address space.
Definition at line 12 of file sc-bad-arg.c.
References fail(), and SYS_EXIT.