kern: implement KCodeMemory (and SVCs)

This commit is contained in:
Michael Scire 2020-07-28 15:09:07 -07:00 committed by SciresM
parent 3fb3beeaff
commit 39b22cee8c
6 changed files with 152 additions and 10 deletions
libraries/libmesosphere/source

View file

@ -48,7 +48,7 @@ namespace ams::kern {
void KTransferMemory::Finalize() {
MESOSPHERE_ASSERT_THIS();
/* Unmap. */
/* Unlock. */
if (!this->is_mapped) {
const size_t size = GetReference(this->page_group).GetNumPages() * PageSize;
MESOSPHERE_R_ABORT_UNLESS(this->owner->GetPageTable().UnlockForTransferMemory(this->address, size, GetReference(this->page_group)));