PatchworkOS  19e446b
A non-POSIX operating system.
Loading...
Searching...
No Matches
syscall_ctx_t Struct Reference

Per thread syscall context. More...

#include <syscall.h>

Collaboration diagram for syscall_ctx_t:

Data Fields

uintptr_t syscallRsp
 The stack pointer to use when handling syscalls.
 
uintptr_t userRsp
 Used to avoid clobbering registers when switching stacks.
 
interrupt_frame_tframe
 If a fake interrupt is generated, this is the interrupt frame to return to.
 
syscall_flags_t flags
 Flags for the current syscall.
 

Detailed Description

Per thread syscall context.

Definition at line 132 of file syscall.h.

Field Documentation

◆ syscallRsp

uintptr_t syscall_ctx_t::syscallRsp

The stack pointer to use when handling syscalls.

Definition at line 134 of file syscall.h.

◆ userRsp

uintptr_t syscall_ctx_t::userRsp

Used to avoid clobbering registers when switching stacks.

Definition at line 135 of file syscall.h.

◆ frame

interrupt_frame_t* syscall_ctx_t::frame

If a fake interrupt is generated, this is the interrupt frame to return to.

Definition at line 136 of file syscall.h.

◆ flags

syscall_flags_t syscall_ctx_t::flags

Flags for the current syscall.

Definition at line 137 of file syscall.h.


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