kern: implement transfer memory (and SVCs)

This commit is contained in:
Michael Scire
2020-07-23 00:44:33 -07:00
committed by SciresM
parent 28aab09b5d
commit d87a9f011c
8 changed files with 312 additions and 19 deletions

View File

@@ -88,7 +88,7 @@ namespace ams::kern::svc {
/* Verify that the mapping is in range. */
R_UNLESS(page_table.CanContain(address, size, KMemoryState_Shared), svc::ResultInvalidMemoryRegion());
/* Map the shared memory. */
/* Unmap the shared memory. */
R_TRY(shmem->Unmap(std::addressof(page_table), address, size, std::addressof(process)));
/* Remove the shared memory from the process. */