summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorGravatar Subv2018-01-09 12:05:10 -0500
committerGravatar Subv2018-01-09 12:05:10 -0500
commita418f6e77b055b3b18aca2325c6db5705ad66bdd (patch)
treefe6a956b7553edd8c1663395211a1c4ee431709b /src/core/hle/kernel
parentSVC: Fixed WaitSynchronization with multiple handles when at least one of the... (diff)
downloadyuzu-a418f6e77b055b3b18aca2325c6db5705ad66bdd.tar.gz
yuzu-a418f6e77b055b3b18aca2325c6db5705ad66bdd.tar.xz
yuzu-a418f6e77b055b3b18aca2325c6db5705ad66bdd.zip
ErrorCodes: Updated the InvalidHandle and Timeout kernel error codes.
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/errors.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core/hle/kernel/errors.h b/src/core/hle/kernel/errors.h
index df182efda..c963d7e9a 100644
--- a/src/core/hle/kernel/errors.h
+++ b/src/core/hle/kernel/errors.h
@@ -10,6 +10,7 @@ namespace Kernel {
10 10
11namespace ErrCodes { 11namespace ErrCodes {
12enum { 12enum {
13 // TODO(Subv): Remove these 3DS OS error codes.
13 OutOfHandles = 19, 14 OutOfHandles = 19,
14 SessionClosedByRemote = 26, 15 SessionClosedByRemote = 26,
15 PortNameTooLong = 30, 16 PortNameTooLong = 30,
@@ -17,6 +18,10 @@ enum {
17 WrongPermission = 46, 18 WrongPermission = 46,
18 InvalidBufferDescriptor = 48, 19 InvalidBufferDescriptor = 48,
19 MaxConnectionsReached = 52, 20 MaxConnectionsReached = 52,
21
22 // Confirmed Switch OS error codes
23 InvalidHandle = 114,
24 Timeout = 117,
20}; 25};
21} 26}
22 27
@@ -36,7 +41,7 @@ constexpr ResultCode ERR_INVALID_COMBINATION_KERNEL(-1);
36constexpr ResultCode ERR_OUT_OF_MEMORY(-1); 41constexpr ResultCode ERR_OUT_OF_MEMORY(-1);
37constexpr ResultCode ERR_INVALID_ADDRESS(-1); 42constexpr ResultCode ERR_INVALID_ADDRESS(-1);
38constexpr ResultCode ERR_INVALID_ADDRESS_STATE(-1); 43constexpr ResultCode ERR_INVALID_ADDRESS_STATE(-1);
39constexpr ResultCode ERR_INVALID_HANDLE(-1); 44constexpr ResultCode ERR_INVALID_HANDLE(ErrorModule::Kernel, ErrCodes::InvalidHandle);
40constexpr ResultCode ERR_INVALID_POINTER(-1); 45constexpr ResultCode ERR_INVALID_POINTER(-1);
41constexpr ResultCode ERR_INVALID_OBJECT_ADDR(-1); 46constexpr ResultCode ERR_INVALID_OBJECT_ADDR(-1);
42constexpr ResultCode ERR_NOT_AUTHORIZED(-1); 47constexpr ResultCode ERR_NOT_AUTHORIZED(-1);
@@ -45,7 +50,7 @@ constexpr ResultCode ERR_INVALID_HANDLE_OS(-1);
45constexpr ResultCode ERR_NOT_FOUND(-1); 50constexpr ResultCode ERR_NOT_FOUND(-1);
46constexpr ResultCode ERR_OUT_OF_RANGE(-1); 51constexpr ResultCode ERR_OUT_OF_RANGE(-1);
47constexpr ResultCode ERR_OUT_OF_RANGE_KERNEL(-1); 52constexpr ResultCode ERR_OUT_OF_RANGE_KERNEL(-1);
48constexpr ResultCode RESULT_TIMEOUT(-1); 53constexpr ResultCode RESULT_TIMEOUT(ErrorModule::Kernel, ErrCodes::Timeout);
49/// Returned when Accept() is called on a port with no sessions to be accepted. 54/// Returned when Accept() is called on a port with no sessions to be accepted.
50constexpr ResultCode ERR_NO_PENDING_SESSIONS(-1); 55constexpr ResultCode ERR_NO_PENDING_SESSIONS(-1);
51 56