diff --git a/rpcsx-os/io-device.cpp b/rpcsx-os/io-device.cpp index 4c128f5bf..b18e02a6a 100644 --- a/rpcsx-os/io-device.cpp +++ b/rpcsx-os/io-device.cpp @@ -76,6 +76,8 @@ static orbis::ErrorCode convertErrno() { return orbis::ErrorCode::SPIPE; case EPIPE: return orbis::ErrorCode::PIPE; + case EINVAL: + return orbis::ErrorCode::INVAL; default: ORBIS_LOG_ERROR("Unconverted errno", error); diff --git a/rpcsx-os/io-devices.hpp b/rpcsx-os/io-devices.hpp index 53e705246..ec27c863a 100644 --- a/rpcsx-os/io-devices.hpp +++ b/rpcsx-os/io-devices.hpp @@ -15,4 +15,5 @@ IoDevice *createNullCharacterDevice(); IoDevice *createZeroCharacterDevice(); IoDevice *createRngCharacterDevice(); IoDevice *createAjmCharacterDevice(); +IoDevice *createSblSrvCharacterDevice(); IoDevice *createShmDevice(); diff --git a/rpcsx-os/main.cpp b/rpcsx-os/main.cpp index d8128a81d..43822fc22 100644 --- a/rpcsx-os/main.cpp +++ b/rpcsx-os/main.cpp @@ -287,6 +287,8 @@ static void onSysExit(orbis::Thread *thread, int id, uint64_t *args, std::fprintf(stderr, ") -> Status %d, Value %lx:%lx\n", result.value(), thread->retval[0], thread->retval[1]); + + thread->where(); funlockfile(stderr); }