Repository navigation
feat(fiber): implement fibers on linux - #48
Merged
Merged
Conversation
Owner
|
Can you remove attribute((visibility("hidden")))? We try to avoid using non-standard expressions where it is possible to do without them. The exported symbol will be patched and converted to nid. But if you add the _nid_no_patch_cut postfix, the postfix will be discarded. Or use _nid_no_patch and reference Aps5FiberTrampoline_nid_no_patch in the asm code. Or just create a new macro for attribute((visibility("hidden"))) defined in prx/libc/include/general |
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ButHENCbXXt8h4EZuWUabJ
…ith _nid_no_patch Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ButHENCbXXt8h4EZuWUabJ
oneandonlydean
force-pushed
the
feat/linux-fibers
branch
from
September 28, 2026 06:48
440fc86 to
41fb657
Compare
Collaborator
Author
|
Done — removed the attribute. The assembly entry points are now |
10 tasks done
Kikoarl
pushed a commit
to Kikoarl/AnyPS5
that referenced
this pull request
Nov 18, 2026
…er-timing feat(kyty): time Vulkan compute pipeline creation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
libSceFiberwas only implemented on Windows; on Linux every function calledNotImplemented. This ports the Windows implementation.How
The state machine, the cross-thread resume handling and the entry trampoline are now shared between platforms. Only the context switch differs:
Aps5FiberSwitchStacksaves the SysV callee-saved set (rbp rbx r12–r15, MXCSR and the x87 control word) instead of the Win64 set.Aps5FiberTrampolinepasses the fiber inrdi.CurrentBounds/SetBoundsdo nothing on Linux.The asm symbols and
Aps5FiberMainare hidden, so they aren't exported or NID-patched.Testing
New
fibertest: run, switch, switching to self (STATEerror),ReturnToThread, resuming a suspended fiber on a different host thread, MXCSR kept per fiber and restored for the thread, and finalize. It uses 0x100-byte storage for eachSceFiberobject, becauseFiberObjectinSceTypes.hppis not the size the guest reserves.