mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-01 15:28:21 -04:00
kern: implement KCodeMemory (and SVCs)
This commit is contained in:
parent
3fb3beeaff
commit
39b22cee8c
6 changed files with 152 additions and 10 deletions
libraries/libmesosphere/source
|
@ -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)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue