PKUOS - Pintos
Pintos source browser for PKU Operating System course
Functions
sc-bad-arg.c File Reference
#include <syscall-nr.h>
#include "tests/lib.h"
#include "tests/main.h"
Include dependency graph for sc-bad-arg.c:

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...
 

Function Documentation

◆ test_main()

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.

tests/main.h

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.

Here is the call graph for this function: