kern: implement KCodeMemory (and SVCs)

This commit is contained in:
Michael Scire authored and SciresM committed 2020-07-31 14:50:52 -07:00
1 parent 3fb3beeaff
commit 39b22cee8c
6 files changed
+152 -10

No files matched your search

@@ -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)));