summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/kernel.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* kernel: Make some functions constLioncash2014-12-041-2/+2
|
* HLE: Revamp error handling throrough the HLE codeYuri Kunde Schlesner2014-11-241-27/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | All service calls in the CTR OS return result codes indicating the success or failure of the call. Previous to this commit, Citra's HLE emulation of services and the kernel universally either ignored errors or returned dummy -1 error codes. This commit makes an initial effort to provide an infrastructure for error reporting and propagation which can be use going forward to make HLE calls accurately return errors as the original system. A few parts of the code have been updated to use the new system where applicable. One part of this effort is the definition of the `ResultCode` type, which provides facilities for constructing and parsing error codes in the structured format used by the CTR. The `ResultVal` type builds on `ResultCode` by providing a container for values returned by function that can report errors. It enforces that correct error checking will be done on function returns by preventing the use of the return value if the function returned an error code. Currently this change is mostly internal since errors are still suppressed on the ARM<->HLE border, as a temporary compatibility hack. As functionality is implemented and tested this hack can be eventually removed.
* Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generatedEmmanuel Gil Peyrot2014-11-191-5/+5
|
* Remove extraneous semicolonsLioncash2014-11-181-1/+1
|
* Kernel: Add a Directory object and a getter for it from an Archive object.Emmanuel Gil Peyrot2014-09-171-0/+1
|
* Core: Use std::array for managing kernel object spaceLioncash2014-08-191-3/+4
| | | | These avoid relying on memset for clearing the arrays.
* Core: Alter the kernel string functions to use std::string instead of const char*.Lioncash2014-08-181-3/+3
| | | | Most functions already operate on std::strings. This also removes the need to manually null terminate thread names.
* Kernel: Added preliminary support for address arbiters.bunnei2014-07-091-1/+1
| | | | | | | | AddressArbiter: Added documentation comment, fixed whitespace issue. AddressArbiter: Fixed incorrect comment, reordered if-statement to be more clear. SVC: Removed trailing whitespace.
* Kernel: Added stubbed code to support creation of kernel Archive objects.bunnei2014-06-271-0/+1
|
* Kernel: Added freeing of kernel objects on emulator shutdown.bunnei2014-06-131-0/+6
|
* Kernel: Updated several member functions to be constbunnei2014-06-131-2/+2
|
* Kernel: Made SyncRequest not pure virtual, with a default implementation of error (as this is not required for all kernel objects)bunnei2014-06-131-2/+4
|
* kernel: moved position of * for GetTypeName and GetNamebunnei2014-06-031-2/+2
|
* kernel: changed main thread priority to default, updated Kernel::Reschedule to use PrepareReschedulebunnei2014-06-021-0/+1
|
* kernel: added WaitSynchronization method to Kernel::Objectbunnei2014-05-271-0/+7
|
* kernel: updated SyncRequest to take boolean thread wait result as a parameterbunnei2014-05-271-1/+8
|
* kernel: added enum for known CurrentThread and CurrentProcess handlesbunnei2014-05-271-0/+5
|
* kernel: add a SyncRequest method to KernelObject for use with svcSendSyncRequestbunnei2014-05-271-0/+1
|
* kernel: refactored function naming to remove "__" prefixbunnei2014-05-231-2/+7
|
* kernel: fixed include, in general include "common.h" not "common_types.h"bunnei2014-05-211-1/+1
|
* - created a Kernel namespacebunnei2014-05-211-31/+44
| | | | | - cleaned up Kernel code a bit (moved stuff into namespace, fixed whitespace issues) - added handle types for all different CTROS handles
* - updated service(s) to be KernelObject'sbunnei2014-05-191-4/+5
| | | | - various cleanups
* - moved Handle/Result definitions to kernel.hbunnei2014-05-191-1/+2
| | | | - added ResetType enum
* - replaced KERNELOBJECT_MAX_NAME_LENGTH with KERNEL_MAX_NAME_LENGTHbunnei2014-05-171-3/+2
| | | | - added KERNEL_DEFAULT_STACK_SIZE definition (0x4000)
* changed "UID" to "Handle" to be a little more consistent with CTR namingbunnei2014-05-161-13/+16
|
* - added __KernelLoadExec functionbunnei2014-05-141-13/+24
| | | | - fixed some logging
* added initial kernel/thread modulesbunnei2014-05-101-0/+121