diff options
author | bunnei <bunneidev@gmail.com> | 2022-11-18 22:18:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-18 22:18:36 +0100 |
commit | 1fb33bd1e19fe0855072b08a91353a3b457fa85d (patch) | |
tree | 3687b2c5e394843e4554b0e0ca733d840aca8720 /src/core/hle/kernel/svc_wrap.h | |
parent | Merge pull request #9244 from liamwhite/lost-wakeup (diff) | |
parent | kernel: implement FlushProcessDataCache (diff) | |
download | yuzu-1fb33bd1e19fe0855072b08a91353a3b457fa85d.tar yuzu-1fb33bd1e19fe0855072b08a91353a3b457fa85d.tar.gz yuzu-1fb33bd1e19fe0855072b08a91353a3b457fa85d.tar.bz2 yuzu-1fb33bd1e19fe0855072b08a91353a3b457fa85d.tar.lz yuzu-1fb33bd1e19fe0855072b08a91353a3b457fa85d.tar.xz yuzu-1fb33bd1e19fe0855072b08a91353a3b457fa85d.tar.zst yuzu-1fb33bd1e19fe0855072b08a91353a3b457fa85d.zip |
Diffstat (limited to '')
-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 272c54cf7..3730937fe 100644 --- a/src/core/hle/kernel/svc_wrap.h +++ b/src/core/hle/kernel/svc_wrap.h @@ -722,4 +722,12 @@ void SvcWrap32(Core::System& system) { FuncReturn(system, retval); } +// Used by Invalidate/Store/FlushProcessDataCache32 +template <Result func(Core::System&, Handle, u64, u64)> +void SvcWrap32(Core::System& system) { + const u64 address = (Param(system, 3) << 32) | Param(system, 2); + const u64 size = (Param(system, 4) << 32) | Param(system, 1); + FuncReturn32(system, func(system, Param32(system, 0), address, size).raw); +} + } // namespace Kernel |