kern: add KCodeMemory code left out of previous commit

This commit is contained in:
Michael Scire 2020-07-28 18:10:23 -07:00 committed by SciresM
parent 39b22cee8c
commit 7cf0432569
3 changed files with 167 additions and 3 deletions

View file

@ -2665,6 +2665,7 @@ namespace ams::kern {
Result KPageTableBase::SetupForIpcServer(KProcessAddress *out_addr, size_t size, KProcessAddress src_addr, KMemoryPermission test_perm, KMemoryState dst_state, KPageTableBase &src_page_table, bool send) {
MESOSPHERE_ASSERT(this->IsLockedByCurrentThread());
MESOSPHERE_ASSERT(src_page_table.IsLockedByCurrentThread());
/* Check that we can theoretically map. */
const KProcessAddress region_start = this->alias_region_start;