summaryrefslogtreecommitdiff
path: root/src/core/hle/ipc.h
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2017-06-08 23:52:30 -0700
committerGravatar Yuri Kunde Schlesner2017-06-11 13:07:33 -0700
commit20e5abb30807d4e0e34c79c049252f0872e47ca7 (patch)
tree54284838ca89629576a046807b6965fe11507880 /src/core/hle/ipc.h
parentRemove unused import in break_points.cpp (#2763) (diff)
downloadyuzu-20e5abb30807d4e0e34c79c049252f0872e47ca7.tar.gz
yuzu-20e5abb30807d4e0e34c79c049252f0872e47ca7.tar.xz
yuzu-20e5abb30807d4e0e34c79c049252f0872e47ca7.zip
ServiceFramework: Use separate copy of command buffer
Copy the IPC command buffer to/from the request context before/after the handler is invoked. This is part of a move away from using global data for handling IPC requests.
Diffstat (limited to 'src/core/hle/ipc.h')
-rw-r--r--src/core/hle/ipc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/ipc.h b/src/core/hle/ipc.h
index 303ca090d..f7f96125a 100644
--- a/src/core/hle/ipc.h
+++ b/src/core/hle/ipc.h
@@ -44,6 +44,9 @@ inline u32* GetStaticBuffers(const int offset = 0) {
44 44
45namespace IPC { 45namespace IPC {
46 46
47/// Size of the command buffer area, in 32-bit words.
48constexpr size_t COMMAND_BUFFER_LENGTH = 0x100 / sizeof(u32);
49
47// These errors are commonly returned by invalid IPC translations, so alias them here for 50// These errors are commonly returned by invalid IPC translations, so alias them here for
48// convenience. 51// convenience.
49// TODO(yuriks): These will probably go away once translation is implemented inside the kernel. 52// TODO(yuriks): These will probably go away once translation is implemented inside the kernel.