fix(libkernel): accept semaphore attribute bits 0x100 to 0x102 #13600
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13600"
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 akkadbakkad89 on 2026-10-30T19:03:22Z.
What
sceKernelCreateSemaaccepted attribute bits 0x100 to 0x102 on a PS5 (firmware 13.60 payload run) but threwNotImplementedhere. The bits are now accepted and ignored — their effect is unmeasured — and recorded under Silent stubs in the libkernel debt file.isFiforeads the ordering field (attr & 3) so 0x101 keeps the FIFO ordering its low bits select.Tested
guest_semaphoreandguest_semaphore_traceon Windows 11 (MinGW build): the EINVAL loop's 0x100-0x102 skip now assertsSCE_OKfor each bit andsceKernelDeleteSemareleases each created semaphore. Both tests pass.Call sites checked in the three audited titles' relinked executables: PPSA20397 reaches
sceKernelCreateSemafrom five sites passing attr 0, 0, 1, 1, 1 (0x141b54a83, 0x14301359b, 0x143c48136, 0x143feb25e, 0x144d6d97d in app.exe); PPSA03530 from five sites all passing attr 1; PPSA30528 lists the import but no call site. No title call passes 0x1xx, so nothing is unblocked by the attribute itself — the change matches the measured console answer only.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Semaphore.cppexist in #9491 and #10558; whichever lands second rebases)sceKernelCreateSema, but no call site passes bits 0x100 to 0x102)