Max OS 0.3
Loading...
Searching...
No Matches
MaxOS::system::SyscallArguments Struct Reference

The arguments passed to a syscall (simplified representation of values in registers) More...

#include <syscalls.h>

Public Attributes

uint64_t arg0
 First argument (in rdi)
 
uint64_t arg1
 Second argument (in rsi)
 
uint64_t arg2
 Third argument (in rdx)
 
uint64_t arg3
 Fourth argument (in rcx)
 
uint64_t arg4
 Fifth argument (in r8)
 
uint64_t arg5
 Sixth argument (in r9)
 
uint64_t return_value
 The return value of the syscall (in rax)
 
cpu_status_treturn_state
 The CPU state to return to after the syscall.
 

Detailed Description

The arguments passed to a syscall (simplified representation of values in registers)

Definition at line 36 of file syscalls.h.

Member Data Documentation

◆ arg0

uint64_t MaxOS::system::SyscallArguments::arg0

First argument (in rdi)

Definition at line 38 of file syscalls.h.

◆ arg1

uint64_t MaxOS::system::SyscallArguments::arg1

Second argument (in rsi)

Definition at line 39 of file syscalls.h.

◆ arg2

uint64_t MaxOS::system::SyscallArguments::arg2

Third argument (in rdx)

Definition at line 40 of file syscalls.h.

◆ arg3

uint64_t MaxOS::system::SyscallArguments::arg3

Fourth argument (in rcx)

Definition at line 41 of file syscalls.h.

◆ arg4

uint64_t MaxOS::system::SyscallArguments::arg4

Fifth argument (in r8)

Definition at line 42 of file syscalls.h.

◆ arg5

uint64_t MaxOS::system::SyscallArguments::arg5

Sixth argument (in r9)

Definition at line 43 of file syscalls.h.

◆ return_state

cpu_status_t* MaxOS::system::SyscallArguments::return_state

The CPU state to return to after the syscall.

Definition at line 45 of file syscalls.h.

◆ return_value

uint64_t MaxOS::system::SyscallArguments::return_value

The return value of the syscall (in rax)

Definition at line 44 of file syscalls.h.


The documentation for this struct was generated from the following file: