summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/errors.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-28 00:37:48 +0200
committerGitHub <noreply@github.com>2018-08-28 00:37:48 +0200
commita409d49bbd2fe68fde2c5bacd83a4b2e5f396641 (patch)
tree38a7ceb610ba22622bfc5142aca139ff7fe7f882 /src/core/hle/kernel/errors.h
parentMerge pull request #1169 from Lakumakkara/sel (diff)
parentkernel/error: Amend error code for ERR_MAX_CONNECTIONS_REACHED (diff)
downloadyuzu-a409d49bbd2fe68fde2c5bacd83a4b2e5f396641.tar
yuzu-a409d49bbd2fe68fde2c5bacd83a4b2e5f396641.tar.gz
yuzu-a409d49bbd2fe68fde2c5bacd83a4b2e5f396641.tar.bz2
yuzu-a409d49bbd2fe68fde2c5bacd83a4b2e5f396641.tar.lz
yuzu-a409d49bbd2fe68fde2c5bacd83a4b2e5f396641.tar.xz
yuzu-a409d49bbd2fe68fde2c5bacd83a4b2e5f396641.tar.zst
yuzu-a409d49bbd2fe68fde2c5bacd83a4b2e5f396641.zip
Diffstat (limited to 'src/core/hle/kernel/errors.h')
-rw-r--r--src/core/hle/kernel/errors.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/core/hle/kernel/errors.h b/src/core/hle/kernel/errors.h
index 221cb1bb5..4054d5db6 100644
--- a/src/core/hle/kernel/errors.h
+++ b/src/core/hle/kernel/errors.h
@@ -11,17 +11,16 @@ namespace Kernel {
namespace ErrCodes {
enum {
// TODO(Subv): Remove these 3DS OS error codes.
- OutOfHandles = 19,
SessionClosedByRemote = 26,
- PortNameTooLong = 30,
NoPendingSessions = 35,
- WrongPermission = 46,
InvalidBufferDescriptor = 48,
- MaxConnectionsReached = 52,
// Confirmed Switch OS error codes
+ MaxConnectionsReached = 7,
InvalidAddress = 102,
+ HandleTableFull = 105,
InvalidMemoryState = 106,
+ InvalidMemoryPermissions = 108,
InvalidProcessorId = 113,
InvalidHandle = 114,
InvalidCombination = 116,
@@ -30,6 +29,7 @@ enum {
TooLarge = 119,
InvalidEnumValue = 120,
InvalidState = 125,
+ ResourceLimitExceeded = 132,
};
}
@@ -37,18 +37,21 @@ enum {
// double check that the code matches before re-using the constant.
// TODO(bunnei): Replace these with correct errors for Switch OS
-constexpr ResultCode ERR_OUT_OF_HANDLES(-1);
+constexpr ResultCode ERR_HANDLE_TABLE_FULL(ErrorModule::Kernel, ErrCodes::HandleTableFull);
constexpr ResultCode ERR_SESSION_CLOSED_BY_REMOTE(-1);
-constexpr ResultCode ERR_PORT_NAME_TOO_LONG(-1);
-constexpr ResultCode ERR_WRONG_PERMISSION(-1);
-constexpr ResultCode ERR_MAX_CONNECTIONS_REACHED(-1);
+constexpr ResultCode ERR_PORT_NAME_TOO_LONG(ErrorModule::Kernel, ErrCodes::TooLarge);
+constexpr ResultCode ERR_MAX_CONNECTIONS_REACHED(ErrorModule::Kernel,
+ ErrCodes::MaxConnectionsReached);
constexpr ResultCode ERR_INVALID_ENUM_VALUE(ErrorModule::Kernel, ErrCodes::InvalidEnumValue);
constexpr ResultCode ERR_INVALID_ENUM_VALUE_FND(-1);
constexpr ResultCode ERR_INVALID_COMBINATION(-1);
-constexpr ResultCode ERR_INVALID_COMBINATION_KERNEL(-1);
+constexpr ResultCode ERR_INVALID_COMBINATION_KERNEL(ErrorModule::Kernel,
+ ErrCodes::InvalidCombination);
constexpr ResultCode ERR_OUT_OF_MEMORY(-1);
constexpr ResultCode ERR_INVALID_ADDRESS(ErrorModule::Kernel, ErrCodes::InvalidAddress);
constexpr ResultCode ERR_INVALID_ADDRESS_STATE(ErrorModule::Kernel, ErrCodes::InvalidMemoryState);
+constexpr ResultCode ERR_INVALID_MEMORY_PERMISSIONS(ErrorModule::Kernel,
+ ErrCodes::InvalidMemoryPermissions);
constexpr ResultCode ERR_INVALID_HANDLE(ErrorModule::Kernel, ErrCodes::InvalidHandle);
constexpr ResultCode ERR_INVALID_STATE(ErrorModule::Kernel, ErrCodes::InvalidState);
constexpr ResultCode ERR_INVALID_POINTER(-1);