summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc_wrap.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-11-12 17:02:07 +0100
committerLiam <byteslice@airmail.cc>2022-11-12 17:27:04 +0100
commit651f6598ac8a980700c330f382d711f7429571a8 (patch)
tree4dcc480763f706a8584d113d27862d68d10aebc4 /src/core/hle/kernel/svc_wrap.h
parentcommon: add cache management functions (diff)
downloadyuzu-651f6598ac8a980700c330f382d711f7429571a8.tar
yuzu-651f6598ac8a980700c330f382d711f7429571a8.tar.gz
yuzu-651f6598ac8a980700c330f382d711f7429571a8.tar.bz2
yuzu-651f6598ac8a980700c330f382d711f7429571a8.tar.lz
yuzu-651f6598ac8a980700c330f382d711f7429571a8.tar.xz
yuzu-651f6598ac8a980700c330f382d711f7429571a8.tar.zst
yuzu-651f6598ac8a980700c330f382d711f7429571a8.zip
Diffstat (limited to 'src/core/hle/kernel/svc_wrap.h')
-rw-r--r--src/core/hle/kernel/svc_wrap.h8
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