feat(libkernel): implement __Ux86_64_setcontext #11215
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11215"
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 26JATIN on 2026-10-25T21:57:00Z.
What
__Ux86_64_setcontextthrewNotImplemented_nid_no_patch, so a title that called it aborted. The symbol is FreeBSD's alias ofsetcontext, so it takes the context pointer inrdiand now forwards tosetcontext_nid_postfix, the implementationswapcontextalready uses.The declaration had no parameters because the prototype was unrecovered; the recovered argument and the inferred calling convention are recorded in
docs/dev/debt/libkernel.md.Tested
Linux (Ubuntu, GCC 15.2.0, x86-64). The changed translation unit compiles with the project's flags (
tools/check_compile.py --base origin/main) andlibkernellinks. The same change was part of a full build with-DBUILD_TESTING=ONandctest: 2271 of 2274 tests passed, the three failures environmental (pr_overlap_encodingneeds the build directory inside a git checkout,unwrap_selfneedsos.chown,agc_driver_multisample_retirementruns on llvmpipe with 1x1 sample location grids).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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T09:28:54Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the implementation forwards the context pointer to the existing
setcontexthandler, and the inspected handler validates it before restoring the context.What I ran
Reviewed head
7c3ff4148c2e20144a7d455dc5e6af560297bd7e. Read the prepared description, commits, manifest, diff, all three changed files, and thesetcontext_nid_postfiximplementation. Usedrepo_read.pysearch and read tools; no commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The author reports 2271 of 2274 tests passed, with three failures described as environmental; this review did not run or independently confirm those checks. The inferred alias calling convention and behavior on a physical console were not independently verified.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T11:55:33Z.
Review: COMMENTED
The exported function now forwards the context pointer to the existing
setcontext_nid_postfiximplementation. A merge against main at75021708bf23conflicts incore/libs/prx/libkernel/include/Api.hpp. I also found one repository convention issue in the debt entry.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.