feat(libSceGnmDriverForNeoMode): return from 25 calls as firmware 13.42 does #15605
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15605"
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 BunnyFl on 2026-11-03T21:27:25Z.
What
25 libSceGnmDriverForNeoMode exports threw. In firmware 13.42 each one returns at once, reading none of its arguments and writing nothing, and this change does the same:
KKsYtugjKLw(unnamed)KKsYtugjKLwretvoid)8+itHHi1ea0(unnamed)8+itHHi1ea0retvoid)sceGnmValidateGetVersionHzMN7ANqYEcxor %eax,%eaxsceGnmDriverInternalVirtualQueryBvvO8Up88Zcxor %eax,%eaxsceGnmIsDebugResetAvailablexMMot887QXExor %eax,%eaxsceGnmRaiseUserExceptionEvent+rJnw2e9O+0xor %eax,%eaxsceGnmGetCoredumpAddressGviyYfFQIkcxor %eax,%eaxsceGnmPaHeartbeattNuT48mApTcxor %eax,%eaxsceGnmPaDisableFlipCallbacks+N+wrSYBLIwxor %eax,%eaxsceGnmPaEnableFlipCallbacks8WDA9RiXLawxor %eax,%eax-bNK8kTFf6s,UGePHM7rmgA,QP7vDGU0xDQ,7LTGukH+M1A,2T1zOhnddFQ,MLr+Fyrxf+8,QWuQed5Mus4xor %eax,%eax6a3+Twrkogk,epUMKkeaze8,HEOIaxbuVTA,5R1E24FRI4w,v7QcBXR48L8,gQNwGezNDgE,+RaJBCVJZVM,1TRGZJsC5Y4mov $0x8eee00ff,%eax0x8EEE00FF(the file'sFailure)The named ones keep their no-parameter declarations. The two
ret-only unnamed ones becomevoidininclude/InventoryExports.hpp, since their bodies leaveraxas the caller left it.Three named exports whose bodies are also a lone
retstay as they are:sceGnmGpuPaDebugEnter,sceGnmGpuPaDebugLeaveandsceGnmRegisterGnmLiveCallbackConfig. Avoidbody that does nothing is a silent stub under the Conventions check, and these don't unblock a title.docs/dev/debt/libSceGnmDriverForNeoMode.md:sceGnmIsDebugResetAvailableentry;R3TYO7Tdv5o,sKhoi2ectC0,ut57TBmRQN0);sceGnmDriverTraceInProgressand the others.Source
Firmware 13.42
system/common/lib/libSceGnmDriverForNeoMode.sprx(sha256c2bf0635bc2c6f96ac672ddc03d1db255a6d065b2d49de4ad5e74c86d82bf960), read from disassembly, not run on a console. Export addresses come from the module's dynamic symbol table. Each body runs to its return:No argument register is read and nothing is stored. A null or invalid pointer is never dereferenced, here or in firmware.
Tested
4b7db6f280: 71 of 71 pass. That is the sixguest_gnm_neo_*tests,public_headersand the 64public_headers_compile_*batches.core/libs/tests/GuestGnmNeoRetail.cppnow calls all 25: the 15 that return 0 join its existing 0 rows, the 8 unnamed0x8EEE00FFones get their ownFailurerow, and it calls the twovoidones.NotImplemented_nid_no_patch(__func__)back at the top of the 25 bodies, which ismain's behaviour, and kept this branch's signatures and test.guest_gnm_neo_retailthen aborts withsceGnmDriverInternalVirtualQuery not implemented(1 of 1 failed).tools/check_conventions.py --base upstream/mainon the committed head: all checks pass.tools/pr_overlap.py --branch: only #14212 shares a file. It is a repo-wide debt reformat that conflicts withmain. In this file it only rewords the counts in the two entries changed here. No open PR changes these 25 functions.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)🤖 Generated with Claude Code