[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:
DH 2024-01-04 03:53:58 +03:00
parent bbfcda5f10
commit e90566e7de
26 changed files with 625 additions and 147 deletions

View file

@ -24,9 +24,9 @@ struct EventFlag final {
char name[32];
bool isDeleted = false;
std::uint8_t attrs;
std::uint8_t attrs = kEvfAttrMulti | kEvfAttrThFifo;
std::atomic<unsigned> references{0};
std::atomic<std::uint64_t> value;
std::atomic<std::uint64_t> value{0};
struct WaitingThread {
Thread *thread;
@ -61,7 +61,8 @@ struct EventFlag final {
enum class NotifyType { Set, Cancel, Destroy };
explicit EventFlag(std::int32_t attrs, std::uint64_t initPattern)
EventFlag() = default;
EventFlag(std::int32_t attrs, std::uint64_t initPattern)
: attrs(attrs), value(initPattern) {}
ErrorCode wait(Thread *thread, std::uint8_t waitMode,