libkernel: pthread_attr_setsolosched_np stops Returnal (PPSA01285); fix branch ready #3148
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-10T23:15:58Z.
pthread_attr_setsolosched_np(libkernel, NID2+pVfgiEd7A) is aNotImplemented_nid_no_patchstub while its SCE twinscePthreadAttrSetsoloschedis implemented. Returnal (PPSA01285 v03.000.005) stops on it after eager binding, as CouchRiv reported in #2872 and #1155:LEGO Horizon Adventures (PPSA14632, #734) and Palworld (PPSA23126, #2598) import it.
Fix branch ready:
screamm:feat/libkernel-setsolosched-np(7d7901b3, one commit onmaind2f43cb8). I cannot open it as a PR because of the intake check; anyone eligible is welcome to carry it, keeping the commit as is. Earlier single-purpose PRs (#3016, #2658, #2446, #1155) were closed by intake or for lack of a title; this one carries the title and log line above.(attr, int), returnsEINVAL(22) for a null or uninitialised attribute like the neighbouring POSIX setters, and stores the value throughscePthreadAttrSetsolosched, returning its result in errno form. The signature and the stored int follow the SCE twin here and in KytyPS5 and sharpemu; PS5PCEM defines the alias the same way. The value is not applied to scheduling (nothing reads it), recorded in TechnicalDebt together with the unverified acceptance of values other than 0 and 1.guest_pthread_attrgains null, uninitialised and destroyed attributes returning 22, the default 0, and 1 then 0 read back throughscePthreadAttrGetsolosched.Tested on Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build includinglibs:guest_pthread_attr3/3;ctest -j8 -E "^agc_driver_|^video_out_flip"475/475; withmain'sPosix/Attr.cppthe extended test fails;tools/check_conventions.py --base mainandgit diff --checkpass. Not run on Linux.Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T00:12:16Z.
Carried in #3176 with your commit as is; the only change on top moves the TechnicalDebt line to "Unknown function info".
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T00:25:05Z.
Fixed by #3176.