2018-01-13 13:22:39 -08:00
|
|
|
// Copyright 2018 yuzu emulator team
|
2017-05-21 00:11:36 -07:00
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "core/hle/result.h"
|
|
|
|
|
|
|
|
namespace Kernel {
|
|
|
|
|
2018-11-16 11:24:27 -08:00
|
|
|
// Confirmed Switch kernel error codes
|
2017-05-21 00:11:36 -07:00
|
|
|
|
2018-11-16 11:24:27 -08:00
|
|
|
constexpr ResultCode ERR_MAX_CONNECTIONS_REACHED{ErrorModule::Kernel, 7};
|
2018-12-19 09:57:47 -08:00
|
|
|
constexpr ResultCode ERR_INVALID_CAPABILITY_DESCRIPTOR{ErrorModule::Kernel, 14};
|
2018-11-16 11:24:27 -08:00
|
|
|
constexpr ResultCode ERR_INVALID_SIZE{ErrorModule::Kernel, 101};
|
|
|
|
constexpr ResultCode ERR_INVALID_ADDRESS{ErrorModule::Kernel, 102};
|
2020-04-08 14:31:03 -07:00
|
|
|
constexpr ResultCode ERR_OUT_OF_RESOURCES{ErrorModule::Kernel, 103};
|
2019-02-25 07:13:52 -08:00
|
|
|
constexpr ResultCode ERR_OUT_OF_MEMORY{ErrorModule::Kernel, 104};
|
2018-11-16 11:24:27 -08:00
|
|
|
constexpr ResultCode ERR_HANDLE_TABLE_FULL{ErrorModule::Kernel, 105};
|
|
|
|
constexpr ResultCode ERR_INVALID_ADDRESS_STATE{ErrorModule::Kernel, 106};
|
|
|
|
constexpr ResultCode ERR_INVALID_MEMORY_PERMISSIONS{ErrorModule::Kernel, 108};
|
|
|
|
constexpr ResultCode ERR_INVALID_MEMORY_RANGE{ErrorModule::Kernel, 110};
|
|
|
|
constexpr ResultCode ERR_INVALID_PROCESSOR_ID{ErrorModule::Kernel, 113};
|
|
|
|
constexpr ResultCode ERR_INVALID_THREAD_PRIORITY{ErrorModule::Kernel, 112};
|
|
|
|
constexpr ResultCode ERR_INVALID_HANDLE{ErrorModule::Kernel, 114};
|
|
|
|
constexpr ResultCode ERR_INVALID_POINTER{ErrorModule::Kernel, 115};
|
|
|
|
constexpr ResultCode ERR_INVALID_COMBINATION{ErrorModule::Kernel, 116};
|
|
|
|
constexpr ResultCode RESULT_TIMEOUT{ErrorModule::Kernel, 117};
|
|
|
|
constexpr ResultCode ERR_SYNCHRONIZATION_CANCELED{ErrorModule::Kernel, 118};
|
|
|
|
constexpr ResultCode ERR_OUT_OF_RANGE{ErrorModule::Kernel, 119};
|
|
|
|
constexpr ResultCode ERR_INVALID_ENUM_VALUE{ErrorModule::Kernel, 120};
|
|
|
|
constexpr ResultCode ERR_NOT_FOUND{ErrorModule::Kernel, 121};
|
2018-12-03 09:25:27 -08:00
|
|
|
constexpr ResultCode ERR_BUSY{ErrorModule::Kernel, 122};
|
2018-11-16 11:24:27 -08:00
|
|
|
constexpr ResultCode ERR_SESSION_CLOSED_BY_REMOTE{ErrorModule::Kernel, 123};
|
|
|
|
constexpr ResultCode ERR_INVALID_STATE{ErrorModule::Kernel, 125};
|
2018-12-19 18:14:47 -08:00
|
|
|
constexpr ResultCode ERR_RESERVED_VALUE{ErrorModule::Kernel, 126};
|
2018-11-16 11:24:27 -08:00
|
|
|
constexpr ResultCode ERR_RESOURCE_LIMIT_EXCEEDED{ErrorModule::Kernel, 132};
|
2017-05-21 00:11:36 -07:00
|
|
|
|
|
|
|
} // namespace Kernel
|