summaryrefslogtreecommitdiff
path: root/src/core/hle/ipc.h
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2017-05-21 00:11:36 -0700
committerGravatar Yuri Kunde Schlesner2017-05-24 21:06:00 -0700
commit2cdb40d709f2a5d4f7f3159d4c6d80fe7905b4f3 (patch)
tree7d6d61465f7a4cb6bbb68902301e1ca92f5a76a5 /src/core/hle/ipc.h
parentGSP_GPU: Move error codes from result.h to local file (diff)
downloadyuzu-2cdb40d709f2a5d4f7f3159d4c6d80fe7905b4f3.tar.gz
yuzu-2cdb40d709f2a5d4f7f3159d4c6d80fe7905b4f3.tar.xz
yuzu-2cdb40d709f2a5d4f7f3159d4c6d80fe7905b4f3.zip
Kernel: Centralize error definitions in errors.h
Diffstat (limited to 'src/core/hle/ipc.h')
-rw-r--r--src/core/hle/ipc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/ipc.h b/src/core/hle/ipc.h
index 3a5d481a5..303ca090d 100644
--- a/src/core/hle/ipc.h
+++ b/src/core/hle/ipc.h
@@ -5,6 +5,7 @@
5#pragma once 5#pragma once
6 6
7#include "common/common_types.h" 7#include "common/common_types.h"
8#include "core/hle/kernel/errors.h"
8#include "core/hle/kernel/thread.h" 9#include "core/hle/kernel/thread.h"
9#include "core/memory.h" 10#include "core/memory.h"
10 11
@@ -43,6 +44,12 @@ inline u32* GetStaticBuffers(const int offset = 0) {
43 44
44namespace IPC { 45namespace IPC {
45 46
47// These errors are commonly returned by invalid IPC translations, so alias them here for
48// convenience.
49// TODO(yuriks): These will probably go away once translation is implemented inside the kernel.
50using Kernel::ERR_INVALID_BUFFER_DESCRIPTOR;
51constexpr auto ERR_INVALID_HANDLE = Kernel::ERR_INVALID_HANDLE_OS;
52
46enum DescriptorType : u32 { 53enum DescriptorType : u32 {
47 // Buffer related desciptors types (mask : 0x0F) 54 // Buffer related desciptors types (mask : 0x0F)
48 StaticBuffer = 0x02, 55 StaticBuffer = 0x02,