2023-07-08 01:50:45 +02:00
|
|
|
#include "umtx.hpp"
|
2023-07-09 12:52:38 +02:00
|
|
|
#include "time.hpp"
|
2023-07-08 01:50:45 +02:00
|
|
|
|
2023-07-09 12:52:38 +02:00
|
|
|
orbis::ErrorCode orbis::umtx_lock_umtx(Thread *thread, ptr<umtx> umtx, ulong id,
|
|
|
|
|
timespec *ts) {
|
2023-07-08 01:50:45 +02:00
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-09 12:52:38 +02:00
|
|
|
orbis::ErrorCode orbis::umtx_unlock_umtx(Thread *thread, ptr<umtx> umtx,
|
|
|
|
|
ulong id) {
|
2023-07-08 01:50:45 +02:00
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-09 12:52:38 +02:00
|
|
|
orbis::ErrorCode orbis::umtx_wait(Thread *thread, ptr<void> addr, ulong id,
|
|
|
|
|
timespec *timeout) {
|
2023-07-08 01:50:45 +02:00
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-09 12:52:38 +02:00
|
|
|
orbis::ErrorCode orbis::umtx_wake(Thread *thread, ptr<void> uaddr,
|
|
|
|
|
sint n_wake) {
|
2023-07-08 01:50:45 +02:00
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-09 12:52:38 +02:00
|
|
|
orbis::ErrorCode orbis::umtx_trylock_umutex(Thread *thread, ptr<umutex> m) {
|
2023-07-08 01:50:45 +02:00
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-09 12:52:38 +02:00
|
|
|
orbis::ErrorCode orbis::umtx_lock_umutex(Thread *thread, ptr<umutex> m,
|
|
|
|
|
timespec *timeout) {
|
2023-07-08 01:50:45 +02:00
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-09 12:52:38 +02:00
|
|
|
orbis::ErrorCode orbis::umtx_unlock_umutex(Thread *thread, ptr<umutex> m) {
|
2023-07-08 01:50:45 +02:00
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-09 12:52:38 +02:00
|
|
|
orbis::ErrorCode orbis::umtx_set_ceiling(Thread *thread, ptr<umutex> m,
|
|
|
|
|
std::uint32_t ceiling,
|
|
|
|
|
ptr<uint32_t> oldCeiling) {
|
2023-07-08 01:50:45 +02:00
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-09 12:52:38 +02:00
|
|
|
orbis::ErrorCode orbis::umtx_cv_wait(Thread *thread, ptr<ucond> cv,
|
|
|
|
|
ptr<umutex> m, timespec *ts,
|
|
|
|
|
ulong wflags) {
|
2023-07-08 01:50:45 +02:00
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-09 12:52:38 +02:00
|
|
|
orbis::ErrorCode orbis::umtx_cv_signal(Thread *thread, ptr<ucond> cv) {
|
2023-07-08 01:50:45 +02:00
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-09 12:52:38 +02:00
|
|
|
orbis::ErrorCode orbis::umtx_cv_broadcast(Thread *thread, ptr<ucond> cv) {
|
2023-07-08 01:50:45 +02:00
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-09 12:52:38 +02:00
|
|
|
orbis::ErrorCode orbis::umtx_wait_uint(Thread *thread, ptr<void> addr, ulong id,
|
|
|
|
|
timespec *timeout) {
|
2023-07-08 01:50:45 +02:00
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
orbis::ErrorCode orbis::umtx_rw_rdlock(Thread *thread, ptr<void> obj,
|
|
|
|
|
std::int64_t val, ptr<void> uaddr1,
|
|
|
|
|
ptr<void> uaddr2) {
|
|
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
orbis::ErrorCode orbis::umtx_rw_wrlock(Thread *thread, ptr<void> obj,
|
|
|
|
|
std::int64_t val, ptr<void> uaddr1,
|
|
|
|
|
ptr<void> uaddr2) {
|
|
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
orbis::ErrorCode orbis::umtx_rw_unlock(Thread *thread, ptr<void> obj,
|
|
|
|
|
std::int64_t val, ptr<void> uaddr1,
|
|
|
|
|
ptr<void> uaddr2) {
|
|
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-09 12:52:38 +02:00
|
|
|
orbis::ErrorCode orbis::umtx_wait_uint_private(Thread *thread, ptr<void> addr,
|
|
|
|
|
ulong id, timespec *timeout) {
|
2023-07-08 01:50:45 +02:00
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-09 12:52:38 +02:00
|
|
|
orbis::ErrorCode orbis::umtx_wake_private(Thread *thread, ptr<void> uaddr,
|
|
|
|
|
sint n_wake) {
|
2023-07-08 01:50:45 +02:00
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-09 12:52:38 +02:00
|
|
|
orbis::ErrorCode orbis::umtx_wait_umutex(Thread *thread, ptr<umutex> m,
|
|
|
|
|
timespec *timeout) {
|
2023-07-08 01:50:45 +02:00
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
orbis::ErrorCode orbis::umtx_wake_umutex(Thread *thread, ptr<void> obj,
|
|
|
|
|
std::int64_t val, ptr<void> uaddr1,
|
|
|
|
|
ptr<void> uaddr2) {
|
|
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
orbis::ErrorCode orbis::umtx_sem_wait(Thread *thread, ptr<void> obj,
|
|
|
|
|
std::int64_t val, ptr<void> uaddr1,
|
|
|
|
|
ptr<void> uaddr2) {
|
|
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
orbis::ErrorCode orbis::umtx_sem_wake(Thread *thread, ptr<void> obj,
|
|
|
|
|
std::int64_t val, ptr<void> uaddr1,
|
|
|
|
|
ptr<void> uaddr2) {
|
|
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-09 12:52:38 +02:00
|
|
|
orbis::ErrorCode orbis::umtx_nwake_private(Thread *thread, ptr<void> uaddrs,
|
|
|
|
|
std::int64_t count) {
|
2023-07-08 01:50:45 +02:00
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
orbis::ErrorCode orbis::umtx_wake2_umutex(Thread *thread, ptr<void> obj,
|
|
|
|
|
std::int64_t val, ptr<void> uaddr1,
|
|
|
|
|
ptr<void> uaddr2) {
|
|
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|