Repository navigation
feat(libkernel): implement the system-ex version, lower-limit and trace memory queries - #10110
Conversation
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
MarcZX10
left a comment
There was a problem hiding this comment.
I reviewed exact head 5f3ca8c. The firmware 13.42 disassembly evidence is carefully separated from console measurement, and the tests check exact bytes, neighboring memory, null behavior and errno. The removal from libkernel_sys is consistent with current symbol resolution; current main still has the four discovery stubs. Exact-head conventions and whitespace checks pass; the reported 635/635 Windows tests and emulator-derived null/non-null cases are relevant.
Before approval, please refresh against current main and rerun the focused tests on the resulting merge candidate. check_main_sync.py reports 681 commits behind. The textual merge is clean, but Export.Discovery.cpp changed since the base, and the current PR workflows did not run product tests for these paths (the hosted relinker/build jobs are skipped). I could not configure the local full build because SDL2 development files are missing, so I did not run a local C++ test.
|
Correction: my earlier sync-check command accidentally inspected the workspace branch. For this exact PR worktree, the result is 1 ahead/36 behind current |
…ce memory queries sceKernelGetSystemExVersion, sysKernelGetLowerLimitSysexVersion, sysKernelGetLowerLimitUpdVersion and sceKernelGetTraceMemoryStats were NotImplemented stubs in libkernel_sys. libkernel, libkernel_sys and libkernel_web of firmware 13.42 answer them without asking the kernel: empty strings, a zero version and zero statistics, with the null checks and return codes the firmware uses, including the plain 22 of sceKernelGetSystemExVersion. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5f3ca8c to
9aa0f22
Compare
|
@MarcZX10 thanks for the review. I rebased the branch onto
On the new head (Windows 11, WinLibs GCC 15.2.0 r7 (MinGW-w64 UCRT), Release,
AI-assisted: yes (Claude Code). |
MarcZX10
left a comment
There was a problem hiding this comment.
Re-reviewed exact head 9aa0f22dc72db45687aa2c38d8bf12221bc366bd. The previously requested current-main refresh and focused tests are addressed: the author reports a full Windows build and 642/642 selected kernel/library tests passing, including the two updated cases. I verified exact-head conventions and diff check; sync is 1 ahead/13 behind current main with a clean merge. The removal of the four libkernel_sys stubs is consistent with the entry-stub fallback to libkernel; I checked the current #10132 shared SystemConfiguration.cpp change pairwise and it merges cleanly, while touching different functions. The 13.42 disassembly evidence is accurately labeled as unmeasured firmware behavior. I did not independently run the Windows suite.
What
sceKernelGetSystemExVersion,sysKernelGetLowerLimitSysexVersion,sysKernelGetLowerLimitUpdVersionandsceKernelGetTraceMemoryStatswereNotImplementedstubs in libkernel_sys. In libkernel.sprx, libkernel_sys.sprx and libkernel_web.sprx of firmware 13.42 (read from disassembly, not measured on a console), none of them asks the kernel:sceKernelGetSystemExVersion(char*, char*)22, notSCE_KERNEL_ERROR_EINVAL, when either is null, without writingsysKernelGetLowerLimitSysexVersion(char*)SCE_KERNEL_ERROR_EINVALfor nullsysKernelGetLowerLimitUpdVersion(uint32_t*)SCE_KERNEL_ERROR_EINVALfor nullsceKernelGetTraceMemoryStats(uint64_t*, uint64_t*)They now do the same in libkernel, next to
sceKernelGetSystemSwVersionandsceKernelGetPageTableStats, and the stubs are removed. A libkernel debt entry cites the source and says the meaning of the outputs is unknown.The stubs of these functions in
libkernel_sys/Export.Discovery.cppare removed, so alibkernel_sysimport reaches the implementation in libkernel: the Windows entry stub searches libkernel after libkernel_sys (WindowsEntryStubBuilder.cpp), and the other hosts resolve symbols that libkernel_sys does not define from libkernel.prx. That is why the progress report lists them as removed from libkernel_sys and implemented in libkernel.Tested
Windows 11 (MinGW GCC 15). No title was run.
guest_system_configurationandguest_page_table_statsgained checks: exact bytes written (neighbouring bytes unchanged), null handling and return codes, and errno left alone.ctest -R "^guest_|^kernel" -E "agc|vulkan": 635/635 pass.check_conventions.py --base upstream/main: passed.main, checked by merging each one into this branch. The debt entry sits between two entries that no open PR changes.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