kern: expose mesosphere meta over GetInfo instead of GetSystemInfo

This commit is contained in:
Michael Scire
2020-08-21 12:18:07 -07:00
committed by SciresM
parent 25ba61adae
commit 496f93ccdb
3 changed files with 32 additions and 17 deletions

View File

@@ -157,6 +157,8 @@ namespace ams::svc {
InfoType_UsedNonSystemMemorySize = 22,
InfoType_IsApplication = 23,
InfoType_MesosphereMeta = 65000,
InfoType_ThreadTickCount = 0xF0000002,
};
@@ -169,13 +171,15 @@ namespace ams::svc {
TickCountInfo_Total = std::numeric_limits<s64>::max(),
};
enum MesosphereMetaInfo : u64 {
MesosphereMetaInfo_KernelVersion = 0,
MesosphereMetaInfo_IsKTraceEnabled = 1,
};
enum SystemInfoType : u32 {
SystemInfoType_TotalPhysicalMemorySize = 0,
SystemInfoType_UsedPhysicalMemorySize = 1,
SystemInfoType_InitialProcessIdRange = 2,
/* NOTE: This is potentially temporary, and highly subject to change. */
SystemInfoType_IsMesosphere = 0xF0000000,
};
enum InitialProcessIdRangeInfo : u64 {