fix(libkernel): report the operation mode the console reports #3944
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3944"
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 hugodearaujo on 2026-10-11T19:31:37Z.
What
sceKernelGetOperationModereported 0 for both values, which TechnicalDebt listed as unknown. I called the console's export from a homebrew payload on a PS5 (firmware 13.60), with each output followed by a sentinel int:mainmodesubmode0xab65612eon all three calls, not a status codeSo the function now writes 2 and 0 and returns nothing. Null outputs still throw: passing them on the console was not tried.
Title: Hollow Knight: Silksong (PPSA12544) zeroes both ints, calls the function (
callat0x16a5889ineboot.bin), ignores the result and logssceKernelGetOperationMode mode=%d submode=%d. A submode of 1 sets a flag. The call runs during boot; line 7 of the title's output onmain:On the console it would read
mode=2 submode=0.The payload is not a title process, and the libkernel code is execute-only on the console, so I could not read where the 2 comes from. The TechnicalDebt entry now gives the measurement and says that a title process reading the same values is unverified.
Tested
guest_operation_modechecks both values, the untouched neighbours and the null outputs; it aborts onmain.guest_operation_modepasses;guest_kernel_sys,windows_exceptionsandguest_filesystemexit with0xc0000409the same way on currentmainin this VM.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code