mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 15:56:00 +03:00
[PR #2726] [MERGED] Emulate sceKernelInternalMemory mapping #2939
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#2939
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/2726
Author: @StevenMiller123
Created: 3/30/2025
Status: ✅ Merged
Merged: 3/30/2025
Merged by: @georgemoralis
Base:
main← Head:better-kernel-init-emulation📝 Commits (2)
dd10049Emulate sceKernelInternalMemory mappinga0eeee7Fix name📊 Changes
1 file changed (+13 additions, -1 deletions)
View changed files
📝
src/core/linker.cpp(+13 -1)📄 Description
During game relocation, libkernel performs a call to libSceLibcInternal's _malloc_init function. This function seems to perform many behaviors, most of which only matter for LLE firmware library behaviors.
This PR emulates one behavior of this function, a large flexible memory mapping it performs to the system reserved area of memory. Without handling this, games have more available flexible memory than they may expect.
This fixes a variable underflow on The Last of Us™ Part II startup, allowing it to progress further.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.