[PR #114] [CLOSED] Flexible memory and others #1305

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/114
Author: @georgemoralis
Created: 4/20/2024
Status: Closed

Base: mainHead: flexible-memory


📝 Commits (8)

  • fbd5304 some reorganization for kernel memory
  • b04bc93 intial flexible_memory support. Added sceKernelMapNamedFlexibleMemory
  • 9b0e6c3 rewrote sceKernelLseek , fixed bug in clock_gettime
  • 86fdc21 clock_gettime appears to exist in libkernel and in libScePosix as well
  • 99c9007 dummy np_manager lib
  • 7661bc2 dummy , np_score, np_trophy, screenshot libs
  • 4692dbf sceKernelMapFlexibleMemory, fixed a non-named thread , sceUserServiceGetEvent
  • 4fdf05c clang format fix

📊 Changes

22 files changed (+5565 additions, -12 deletions)

View changed files

📝 CMakeLists.txt (+19 -1)
📝 src/common/logging/filter.cpp (+4 -0)
📝 src/common/logging/types.h (+4 -0)
📝 src/core/libraries/kernel/file_system.cpp (+7 -6)
📝 src/core/libraries/kernel/libkernel.cpp (+2 -0)
src/core/libraries/kernel/memory/flexible_memory.cpp (+22 -0)
src/core/libraries/kernel/memory/flexible_memory.h (+34 -0)
src/core/libraries/kernel/memory/kernel_memory.cpp (+78 -0)
src/core/libraries/kernel/memory/kernel_memory.h (+18 -0)
📝 src/core/libraries/kernel/memory_management.cpp (+2 -0)
📝 src/core/libraries/kernel/thread_management.cpp (+7 -1)
📝 src/core/libraries/libs.cpp (+8 -0)
src/core/libraries/np_manager/np_manager.cpp (+3513 -0)
src/core/libraries/np_manager/np_manager.h (+517 -0)
src/core/libraries/np_score/np_score.cpp (+384 -0)
src/core/libraries/np_score/np_score.h (+67 -0)
src/core/libraries/np_trophy/np_trophy.cpp (+620 -0)
src/core/libraries/np_trophy/np_trophy.h (+103 -0)
src/core/libraries/screenshot/screenshot.cpp (+112 -0)
src/core/libraries/screenshot/screenshot.h (+30 -0)

...and 2 more files

📄 Description

Initial work on flexible memory , seems many games need that when running at with lle libc

Now "we are doomed" seems to allocate heaps for libc , we gonna check other games to see what we have


🔄 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/114 **Author:** [@georgemoralis](https://github.com/georgemoralis) **Created:** 4/20/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `flexible-memory` --- ### 📝 Commits (8) - [`fbd5304`](https://github.com/shadps4-emu/shadPS4/commit/fbd530408b558ac1affefda25c5da977f2478c83) some reorganization for kernel memory - [`b04bc93`](https://github.com/shadps4-emu/shadPS4/commit/b04bc932a10ebd62b5b02d83d7d0370d19f8d47c) intial flexible_memory support. Added sceKernelMapNamedFlexibleMemory - [`9b0e6c3`](https://github.com/shadps4-emu/shadPS4/commit/9b0e6c31ca94873ed24743f51a7fb0db5581ac65) rewrote sceKernelLseek , fixed bug in clock_gettime - [`86fdc21`](https://github.com/shadps4-emu/shadPS4/commit/86fdc21ae7c5cb80749df91aadca6c09832e4cf1) clock_gettime appears to exist in libkernel and in libScePosix as well - [`99c9007`](https://github.com/shadps4-emu/shadPS4/commit/99c9007dcf83ffdcacb3c3e92caefaee1dd79225) dummy np_manager lib - [`7661bc2`](https://github.com/shadps4-emu/shadPS4/commit/7661bc26a6aba39579307f35cb689a6cbceba4ab) dummy , np_score, np_trophy, screenshot libs - [`4692dbf`](https://github.com/shadps4-emu/shadPS4/commit/4692dbf1b73d6587da04f19273b68d10bb7ce7b7) sceKernelMapFlexibleMemory, fixed a non-named thread , sceUserServiceGetEvent - [`4fdf05c`](https://github.com/shadps4-emu/shadPS4/commit/4fdf05c7a1041a7c08db027e55dedd7c790debd3) clang format fix ### 📊 Changes **22 files changed** (+5565 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+19 -1) 📝 `src/common/logging/filter.cpp` (+4 -0) 📝 `src/common/logging/types.h` (+4 -0) 📝 `src/core/libraries/kernel/file_system.cpp` (+7 -6) 📝 `src/core/libraries/kernel/libkernel.cpp` (+2 -0) ➕ `src/core/libraries/kernel/memory/flexible_memory.cpp` (+22 -0) ➕ `src/core/libraries/kernel/memory/flexible_memory.h` (+34 -0) ➕ `src/core/libraries/kernel/memory/kernel_memory.cpp` (+78 -0) ➕ `src/core/libraries/kernel/memory/kernel_memory.h` (+18 -0) 📝 `src/core/libraries/kernel/memory_management.cpp` (+2 -0) 📝 `src/core/libraries/kernel/thread_management.cpp` (+7 -1) 📝 `src/core/libraries/libs.cpp` (+8 -0) ➕ `src/core/libraries/np_manager/np_manager.cpp` (+3513 -0) ➕ `src/core/libraries/np_manager/np_manager.h` (+517 -0) ➕ `src/core/libraries/np_score/np_score.cpp` (+384 -0) ➕ `src/core/libraries/np_score/np_score.h` (+67 -0) ➕ `src/core/libraries/np_trophy/np_trophy.cpp` (+620 -0) ➕ `src/core/libraries/np_trophy/np_trophy.h` (+103 -0) ➕ `src/core/libraries/screenshot/screenshot.cpp` (+112 -0) ➕ `src/core/libraries/screenshot/screenshot.h` (+30 -0) _...and 2 more files_ </details> ### 📄 Description Initial work on flexible memory , seems many games need that when running at with lle libc Now "we are doomed" seems to allocate heaps for libc , we gonna check other games to see what we have --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:12:00 +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#1305
No description provided.