kern: increase stack region size when thread resource limit is increased

This commit is contained in:
Michael Scire 2022-10-11 22:52:09 -07:00 committed by SciresM
parent 7f2cbba543
commit ea82889e6c
4 changed files with 14 additions and 14 deletions

View file

@ -126,11 +126,8 @@ namespace ams::kern {
}
}
size_t KMemoryLayout::GetResourceRegionSizeForInit() {
/* Calculate resource region size based on whether we allow extra threads. */
const bool use_extra_resources = KSystemControl::Init::ShouldIncreaseThreadResourceLimit();
return KernelResourceSize + (use_extra_resources ? KernelSlabHeapAdditionalSize : 0);
size_t KMemoryLayout::GetResourceRegionSizeForInit(bool use_extra_resource) {
return KernelResourceSize + (use_extra_resource ? KernelSlabHeapAdditionalSize : 0);
}
}