mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-08 07:05:40 +12:00
[Kernel] Implement SyscoreVer
This commit is contained in:
parent
1b7c38e27f
commit
684fda0771
2 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,7 @@ namespace ConfigMem {
|
||||||
enum : u32 {
|
enum : u32 {
|
||||||
KernelVersionMinor = 0x1FF80002,
|
KernelVersionMinor = 0x1FF80002,
|
||||||
KernelVersionMajor = 0x1FF80003,
|
KernelVersionMajor = 0x1FF80003,
|
||||||
|
SyscoreVer = 0x1FF80010,
|
||||||
EnvInfo = 0x1FF80014,
|
EnvInfo = 0x1FF80014,
|
||||||
AppMemAlloc = 0x1FF80040,
|
AppMemAlloc = 0x1FF80040,
|
||||||
Datetime0 = 0x1FF81020,
|
Datetime0 = 0x1FF81020,
|
||||||
|
|
|
@ -115,6 +115,7 @@ u32 Memory::read32(u32 vaddr) {
|
||||||
return 0; // Set to 0 by PTM
|
return 0; // Set to 0 by PTM
|
||||||
|
|
||||||
case ConfigMem::AppMemAlloc: return appResourceLimits.maxCommit;
|
case ConfigMem::AppMemAlloc: return appResourceLimits.maxCommit;
|
||||||
|
case ConfigMem::SyscoreVer: return 2;
|
||||||
case 0x1FF81000: return 0; // TODO: Figure out what this config mem address does
|
case 0x1FF81000: return 0; // TODO: Figure out what this config mem address does
|
||||||
default:
|
default:
|
||||||
if (vaddr >= VirtualAddrs::VramStart && vaddr < VirtualAddrs::VramStart + VirtualAddrs::VramSize) {
|
if (vaddr >= VirtualAddrs::VramStart && vaddr < VirtualAddrs::VramStart + VirtualAddrs::VramSize) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue