feat(libkernel): implement __Ux86_64_setcontext #11211
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11211"
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:54:49Z.
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)Pull request closed