aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/set/settings_server.cpp
diff options
context:
space:
mode:
authorZephyron <zephyron@citron-emu.org>2025-01-07 18:50:11 +1000
committerBriar <205427297+icybriarr@users.noreply.github.com>2025-04-04 03:40:49 +0200
commit789bbd7ab5929bbab5b81b39bbf82faf392f13c4 (patch)
treeddc58a230803c74d43b3a93db7ed31441d27ca7d /src/core/hle/service/set/settings_server.cpp
parentc6f2a85142c941fc9b61d6536a32e54c79f3d557 (diff)
kernel: Implement SystemResourceSize info type for VAMM initialization
Adds support for InfoType::SystemResourceSize (0x1C) which is required for proper initialization of the Virtual Address Memory Manager (VAMM). This implementation: 1. Adds SystemResourceSize to the InfoType enum in svc_types.h 2. Implements the GetInfo handler for SystemResourceSize in svc_info.cpp 3. Returns 512MB (0x20000000 bytes) as the system resource size 4. Adds debug logging for the SVC call The 512MB value is chosen based on typical system resource allocations needed for VAMM initialization on the Nintendo Switch. This fixes crashes in games that rely on VAMM functionality, particularly during nn::os::detail::VammManager::InitializeIfEnabled().
Diffstat (limited to 'src/core/hle/service/set/settings_server.cpp')
0 files changed, 0 insertions, 0 deletions