diff options
author | bunnei <bunneidev@gmail.com> | 2021-12-28 08:33:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-28 08:33:11 +0100 |
commit | 9a0648ff0ad38195d7211b8c65d82b93fe123949 (patch) | |
tree | 65389f6208ea88028e095dc65e881b733c7402de /src/core/hle/kernel/svc_wrap.h | |
parent | Merge pull request #7630 from ameerj/glasm-get-int (diff) | |
parent | core: hle: kernel: Implement SetMemoryPermission. (diff) | |
download | yuzu-9a0648ff0ad38195d7211b8c65d82b93fe123949.tar yuzu-9a0648ff0ad38195d7211b8c65d82b93fe123949.tar.gz yuzu-9a0648ff0ad38195d7211b8c65d82b93fe123949.tar.bz2 yuzu-9a0648ff0ad38195d7211b8c65d82b93fe123949.tar.lz yuzu-9a0648ff0ad38195d7211b8c65d82b93fe123949.tar.xz yuzu-9a0648ff0ad38195d7211b8c65d82b93fe123949.tar.zst yuzu-9a0648ff0ad38195d7211b8c65d82b93fe123949.zip |
Diffstat (limited to 'src/core/hle/kernel/svc_wrap.h')
-rw-r--r-- | src/core/hle/kernel/svc_wrap.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/kernel/svc_wrap.h b/src/core/hle/kernel/svc_wrap.h index 86255fe6d..a60adfcab 100644 --- a/src/core/hle/kernel/svc_wrap.h +++ b/src/core/hle/kernel/svc_wrap.h @@ -249,6 +249,14 @@ void SvcWrap64(Core::System& system) { func(system, Param(system, 0), Param(system, 1), static_cast<u32>(Param(system, 2))).raw); } +// Used by SetMemoryPermission +template <ResultCode func(Core::System&, u64, u64, Svc::MemoryPermission)> +void SvcWrap64(Core::System& system) { + FuncReturn(system, func(system, Param(system, 0), Param(system, 1), + static_cast<Svc::MemoryPermission>(Param(system, 2))) + .raw); +} + // Used by MapSharedMemory template <ResultCode func(Core::System&, Handle, u64, u64, Svc::MemoryPermission)> void SvcWrap64(Core::System& system) { |