mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-13 22:54:24 -04:00
kern: implement SvcMapProcessMemory, SvcUnmapProcessMemory
This commit is contained in:
parent
3cf793f87e
commit
fb6e85b291
4 changed files with 112 additions and 19 deletions
|
@ -90,7 +90,7 @@ namespace ams::kern {
|
|||
R_SUCCEED_IF(test_tag != (handle | ams::svc::HandleWaitMask));
|
||||
|
||||
/* Get the lock owner thread. */
|
||||
owner_thread = GetCurrentProcess().GetHandleTable().GetObject<KThread>(handle);
|
||||
owner_thread = GetCurrentProcess().GetHandleTable().GetObjectWithoutPseudoHandle<KThread>(handle);
|
||||
R_UNLESS(owner_thread.IsNotNull(), svc::ResultInvalidHandle());
|
||||
|
||||
/* Update the lock. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue