From ecb7ae05e34bbff71bb993406d0145d13f2d6189 Mon Sep 17 00:00:00 2001 From: Paris Oplopoios <21157395+OFFTKP@users.noreply.github.com> Date: Tue, 26 May 2026 18:32:07 +0300 Subject: [PATCH] Implement ioprio_get/ioprio_set --- src/felix86/hle/syscall.cpp | 8 ++++++++ src/felix86/hle/syscalls_common_32.inc | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/felix86/hle/syscall.cpp b/src/felix86/hle/syscall.cpp index 29f5ae001..3a8f8704c 100644 --- a/src/felix86/hle/syscall.cpp +++ b/src/felix86/hle/syscall.cpp @@ -1407,6 +1407,14 @@ Result felix86_syscall_common(felix86_frame* frame, int rv_syscall, u64 arg1, u6 result = Filesystem::FChownAt(arg1, (const char*)arg2, arg3, arg4, arg5); break; } + case felix86_riscv64_ioprio_get: { + result = SYSCALL(ioprio_get, arg1, arg2, arg3, arg4, arg5, arg6); + break; + } + case felix86_riscv64_ioprio_set: { + result = SYSCALL(ioprio_set, arg1, arg2, arg3, arg4, arg5, arg6); + break; + } case felix86_riscv64_sync_file_range: { result = SYSCALL(sync_file_range, arg1, arg2, arg3, arg4, arg5, arg6); break; diff --git a/src/felix86/hle/syscalls_common_32.inc b/src/felix86/hle/syscalls_common_32.inc index 998c0985f..1c8867258 100644 --- a/src/felix86/hle/syscalls_common_32.inc +++ b/src/felix86/hle/syscalls_common_32.inc @@ -66,6 +66,8 @@ X(socket) X(bind) X(connect) X(listen) +X(ioprio_get) +X(ioprio_set) X(accept4) X(getsockname) X(getpeername) @@ -164,8 +166,6 @@ X(splice) // X(io_getevents) // X(io_setup) // X(io_submit) -// X(ioprio_get) -// X(ioprio_set) // X(kexec_load) // X(lookup_dcookie) // X(lseek)