diff options
author | Zephyron <zephyron@citron-emu.org> | 2025-01-07 18:50:11 +1000 |
---|---|---|
committer | Zephyron <zephyron@citron-emu.org> | 2025-01-07 18:50:11 +1000 |
commit | dae1524eb59fac4b4ca0889d220d25e55eccfc84 (patch) | |
tree | 5079dfbffdbfd8a8fc10bd16fffea1820c0882d0 /src/video_core | |
parent | 66b6d5b2da4b65d11fe54c29c3babb8fcd98bfde (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/video_core')
0 files changed, 0 insertions, 0 deletions