mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
[rpcsx-os/orbis-kernel] random fixes
fix pipe fix socketpair fix bridge fix evf_wait with timeout fix umtx_op(0x17) implement ipmi evf stub sched_get_priority_max/min stub sys_rtprio_thread implement sys_yield emit event on signal stub ajm register/unregister ioctls stub av_control ioctl hack removal
This commit is contained in:
parent
bbfcda5f10
commit
e90566e7de
26 changed files with 625 additions and 147 deletions
70
orbis-kernel/include/orbis/ucontext.hpp
Normal file
70
orbis-kernel/include/orbis/ucontext.hpp
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
#pragma once
|
||||
|
||||
#include "orbis-config.hpp"
|
||||
namespace orbis {
|
||||
|
||||
struct MContext {
|
||||
ulong onstack;
|
||||
ulong rdi;
|
||||
ulong rsi;
|
||||
ulong rdx;
|
||||
ulong rcx;
|
||||
ulong r8;
|
||||
ulong r9;
|
||||
ulong rax;
|
||||
ulong rbx;
|
||||
ulong rbp;
|
||||
ulong r10;
|
||||
ulong r11;
|
||||
ulong r12;
|
||||
ulong r13;
|
||||
ulong r14;
|
||||
ulong r15;
|
||||
uint trapno;
|
||||
ushort fs;
|
||||
ushort gs;
|
||||
ulong addr;
|
||||
uint flags;
|
||||
ushort es;
|
||||
ushort ds;
|
||||
ulong err;
|
||||
ulong rip;
|
||||
ulong cs;
|
||||
ulong rflags;
|
||||
ulong rsp;
|
||||
ulong ss;
|
||||
ulong len;
|
||||
ulong fpformat;
|
||||
ulong ownedfp;
|
||||
ulong lbrfrom;
|
||||
ulong lbrto;
|
||||
ulong aux1;
|
||||
ulong aux2;
|
||||
ulong fpstate[104];
|
||||
ulong fsbase;
|
||||
ulong gsbase;
|
||||
ulong spare[6];
|
||||
};
|
||||
|
||||
struct Stack {
|
||||
ptr<void> sp;
|
||||
size_t size;
|
||||
sint flags;
|
||||
sint align;
|
||||
};
|
||||
|
||||
struct SigSet {
|
||||
ulong bits[2];
|
||||
};
|
||||
|
||||
struct UContext {
|
||||
SigSet sigmask;
|
||||
sint unk0[12];
|
||||
MContext mcontext;
|
||||
ptr<UContext> link;
|
||||
Stack stack;
|
||||
sint uc_flags;
|
||||
sint spare[4];
|
||||
sint unk1[3];
|
||||
};
|
||||
} // namespace orbis
|
||||
Loading…
Add table
Add a link
Reference in a new issue