kern: implement KThreadLocalPage

This commit is contained in:
Michael Scire
2020-01-30 16:51:35 -08:00
parent 484f132651
commit 059c706f19
15 changed files with 295 additions and 30 deletions

View File

@@ -22,7 +22,7 @@ namespace ams::kern {
for (size_t i = 0; i < num_block_shifts; i++) {
overhead_size += KPageHeap::Block::CalculateMetadataOverheadSize(region_size, block_shifts[i], (i != num_block_shifts - 1) ? block_shifts[i + 1] : 0);
}
return util::AlignUp(overhead_size, KMemoryManager::PageSize);
return util::AlignUp(overhead_size, PageSize);
}
}