[PR #1950] [MERGED] libraries/fiber: implement context switching #2398

Closed
opened 2026-02-27 21:16:21 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/1950
Author: @polybiusproxy
Created: 12/28/2024
Status: Merged
Merged: 12/28/2024
Merged by: @polybiusproxy

Base: mainHead: core/fiber-context-switching


📝 Commits (3)

  • 0fdc6c4 libraries/fiber: implement context switching
  • 665ef0b Address review comments
  • 758864d implement sceFiberGetThreadFramePointerAddress

📊 Changes

2 files changed (+91 additions, -9 deletions)

View changed files

📝 src/core/libraries/fiber/fiber.cpp (+89 -9)
📝 src/core/libraries/fiber/fiber.h (+2 -0)

📄 Description

Implements an internal feature of the fiber library that allows for the guest to switch fiber context on run/switch, hence the name 'attach'. Used by the Ult library, allowing for Ult to run without the need of loading the fiber library via LLE.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/1950 **Author:** [@polybiusproxy](https://github.com/polybiusproxy) **Created:** 12/28/2024 **Status:** ✅ Merged **Merged:** 12/28/2024 **Merged by:** [@polybiusproxy](https://github.com/polybiusproxy) **Base:** `main` ← **Head:** `core/fiber-context-switching` --- ### 📝 Commits (3) - [`0fdc6c4`](https://github.com/shadps4-emu/shadPS4/commit/0fdc6c437012d7f0d681e45c339df7607d7cf7fe) libraries/fiber: implement context switching - [`665ef0b`](https://github.com/shadps4-emu/shadPS4/commit/665ef0b82f7eb6c31720ee9262ec967904d79029) Address review comments - [`758864d`](https://github.com/shadps4-emu/shadPS4/commit/758864d320768e6a804c99d8c14720a2db365937) implement `sceFiberGetThreadFramePointerAddress` ### 📊 Changes **2 files changed** (+91 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/fiber/fiber.cpp` (+89 -9) 📝 `src/core/libraries/fiber/fiber.h` (+2 -0) </details> ### 📄 Description Implements an internal feature of the fiber library that allows for the guest to switch fiber context on run/switch, hence the name 'attach'. Used by the Ult library, allowing for Ult to run without the need of loading the fiber library via LLE. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:16:21 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#2398
No description provided.