Merge pull request 'Service: Add AliasRegionExtraSize' (#22) from JPikachu/eden:master into master
Some checks are pending
eden-build / source (push) Waiting to run
eden-build / windows (msvc) (push) Waiting to run
eden-build / linux (push) Waiting to run
eden-build / android (push) Waiting to run

Reviewed-on: #22
This commit is contained in:
JPikachu 2025-04-12 15:33:38 +00:00
commit 86f1d4fd80
2 changed files with 7 additions and 1 deletions

View file

@ -37,7 +37,8 @@ Result GetInfo(Core::System& system, u64* result, InfoType info_id_type, Handle
case InfoType::TotalNonSystemMemorySize:
case InfoType::UsedNonSystemMemorySize:
case InfoType::IsApplication:
case InfoType::FreeThreadCount: {
case InfoType::FreeThreadCount:
case InfoType::AliasRegionExtraSize: {
R_UNLESS(info_sub_id == 0, ResultInvalidEnumValue);
const auto& handle_table = GetCurrentProcess(system.Kernel()).GetHandleTable();
@ -134,6 +135,10 @@ Result GetInfo(Core::System& system, u64* result, InfoType info_id_type, Handle
}
R_SUCCEED();
case InfoType::AliasRegionExtraSize:
// TODO (jarrodnorwell): do this when KIP's NPDM header is finished
R_SUCCEED();
default:
break;
}

View file

@ -153,6 +153,7 @@ enum class InfoType : u32 {
ThreadTickCount = 25,
IsSvcPermitted = 26,
IoRegionHint = 27,
AliasRegionExtraSize = 28,
MesosphereMeta = 65000,
MesosphereCurrentProcess = 65001,