summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/kernel.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Kernel: Get rid of WaitTypes and simplify lots of code, removing hacks.bunnei2015-01-221-3/+2
|
* WaitSynchronizationN: Refactor to fix several bugsbunnei2015-01-221-6/+6
| | | | | | - Separate wait checking from waiting the current thread - Resume thread when wait_all=true only if all objects are available at once - Set output to correct wait object index when there are duplicate handles
* Kernel: Separate WaitSynchronization into Wait and Acquire methods.bunnei2015-01-221-2/+11
|
* WaitSynchronizationN: Implement return valuesbunnei2015-01-221-3/+4
|
* WaitObject: Added RemoveWaitingThread, fixed a bug, and cleanup.bunnei2015-01-221-1/+7
|
* Kernel: Added WaitObject and changed "waitable" objects inherit from it.bunnei2015-01-221-0/+25
|
* Kernel: Start using boost::intrusive_ptr for lifetime managementYuri Kunde Schlesner2015-01-091-8/+13
|
* Kernel: Don't re-assign object's handle when duplicating oneYuri Kunde Schlesner2015-01-091-1/+1
|
* Thread: Reduce use of Handles and move some funcs to inside the class.Yuri Kunde Schlesner2015-01-091-1/+3
|
* SVC: Implemented the Timer service calls.Subv2015-01-091-0/+1
|
* Kernel: New handle managerYuri Kunde Schlesner2014-12-281-81/+109
| | | | | | | | | | | This handle manager more closely mirrors the behaviour of the CTR-OS one. In addition object ref-counts and support for DuplicateHandle have been added. Note that support for DuplicateHandle is still experimental, since parts of the kernel still use Handles internally, which will likely cause troubles if two different handles to the same object are used to e.g. wait on a synchronization primitive.
* Kernel: Replace GetStaticHandleType by HANDLE_TYPE constantsYuri Kunde Schlesner2014-12-281-1/+1
|
* Rename ObjectPool to HandleTableYuri Kunde Schlesner2014-12-281-6/+6
|
* Merge pull request #291 from purpasmart96/licensebunnei2014-12-211-1/+1
|\ | | | | License change
| * License changepurpasmart962014-12-211-1/+1
| |
* | Merge pull request #316 from yuriks/thread-handlebunnei2014-12-201-0/+12
|\ \ | |/ |/| Kernel: Implement support for current thread pseudo-handle
| * Kernel: Implement support for current thread pseudo-handleYuri Kunde Schlesner2014-12-201-0/+12
| | | | | | | | This boots a few (mostly Nintendo 1st party) games further.
* | Filesystem/Archives: Implemented the SaveData archiveSubv2014-12-181-0/+6
|/ | | | | | | | | | The savedata for each game is stored in /savedata/<ProgramID> for NCCH files. ELF files and 3DSX files use the folder 0 because they have no ID information Got rid of the code duplication in File and Directory Files that deal with the host machine's file system now live in DiskFile, similarly for directories and DiskDirectory and archives with DiskArchive. FS_U: Use the correct error code when a file wasn't found
* Remove SyncRequest from K::Object and create a new K::Session typeYuri Kunde Schlesner2014-12-151-14/+2
| | | | | | | This is a first step at fixing the conceptual insanity that is our handling of service and IPC calls. For now, interfaces still directly derived from Session because we don't have the infrastructure to do it properly. (That is, Processes and scheduling them.)
* kernel: Remove unused log argumentsLioncash2014-12-131-3/+3
|
* Convert old logging calls to new logging macrosYuri Kunde Schlesner2014-12-131-7/+10
|
* 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