summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/errors.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* svc: Add missing address range sanitizing checks to MapMemory/UnmapMemoryLioncash2018-10-111-0/+2
| | | | | | | | This adds the missing address range checking that the service functions do before attempting to map or unmap memory. Given that both service functions perform the same set of checks in the same order, we can wrap these into a function and just call it from both functions, which deduplicates a little bit of code.
* kernel/svc: Implement svcGetThreadContext()Lioncash2018-09-301-0/+2
| | | | | | | | | Now that we have all of the rearranging and proper structure sizes in place, it's fairly trivial to implement svcGetThreadContext(). In the 64-bit case we can more or less just write out the context as is, minus some minor value sanitizing. In the 32-bit case we'll need to clear out the registers that wouldn't normally be accessible from a 32-bit AArch32 exectuable (or process).
* Merge pull request #1313 from lioncash/errorbunnei2018-09-171-1/+2
|\ | | | | kernel/errors: Amend error code for ERR_NOT_FOUND
| * kernel/errors: Amend error code for ERR_NOT_FOUNDLioncash2018-09-131-1/+2
| | | | | | | | | | This is the value returned by the kernel for svcConnectToNamedPort() if the named port cannot be found.
* | kernel/svc: Sanitize heap sizes within svcSetHeapSize()Lioncash2018-09-141-0/+2
|/ | | | | The kernel checks if the given size is a multiple of 2MB and <= to 4GB before going ahead and attempting to allocate that much memory.
* kernel/errors: Correct error codes for invalid thread priority and invalid processor IDLioncash2018-09-121-3/+5
|
* kernel/error: Amend error code for ERR_MAX_CONNECTIONS_REACHEDLioncash2018-08-251-2/+4
| | | | | | We can make this error code an alias of the resource limit exceeded error code, allowing us to get rid of the lingering 3DS error code of the same type.
* kernel/error: Amend error code for ERR_PORT_NAME_TOO_LONGLioncash2018-08-251-2/+1
| | | | | We can treat this as an alias of TooLarge for documentation purposes. This also lets us get rid of another lingering 3DS-related error code.
* kernel/error: Add error code for the handle table being fullLioncash2018-08-251-2/+2
| | | | | This replaces the lingering 3DS constant with the proper one, and utilizes it within HandleTable's Create() member function.
* kernel/error: Add error code for invalid memory permissionsLioncash2018-08-251-2/+3
|
* kernel/error: Correct kernel error code for invalid combinationLioncash2018-08-251-1/+2
|
* Kernel/Arbiters: Implement WaitForAddressMichael Scire2018-06-211-0/+2
|
* Kernel/Arbiters: Add stubs for 4.x SignalToAddress/WaitForAddres SVCs.Michael Scire2018-06-211-4/+6
|
* Kernel/SVC: Support special core values -2 and -3 in svcSetThreadCoreMask.Subv2018-05-311-0/+2
| | | | Also added some proper error handling.
* Kernel: Corrected the implementation of svcArbitrateLock and svcArbitrateUnlock.Subv2018-04-211-0/+1
| | | | | | | | | | Switch mutexes are no longer kernel objects, they are managed in userland and only use the kernel to handle the contention case. Mutex addresses store a special flag value (0x40000000) to notify the guest code that there are still some threads waiting for the mutex to be released. This flag is updated when a thread calls ArbitrateUnlock. TODO: * Fix svcWaitProcessWideKey * Fix svcSignalProcessWideKey * Remove the Mutex class.
* yuzu: Update license text to be consistent across project.bunnei2018-01-131-1/+1
|
* SVC: Implemented CancelSynchronization.Subv2018-01-091-0/+2
|
* ErrorCodes: Updated the InvalidHandle and Timeout kernel error codes.Subv2018-01-091-2/+7
|
* errors: Define missing kernel error codes.bunnei2017-12-311-0/+3
|
* hle: Use Switch formatted result codes.bunnei2017-11-011-74/+20
|
* Kernel: Implement AcceptSession SVCYuri Kunde Schlesner2017-06-231-0/+5
|
* Kernel: Centralize error definitions in errors.hYuri Kunde Schlesner2017-05-251-0/+98