Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Kernel: New handle manager | Yuri Kunde Schlesner | 2014-12-28 | 1 | -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 constants | Yuri Kunde Schlesner | 2014-12-28 | 1 | -1/+1 |
| | |||||
* | Rename ObjectPool to HandleTable | Yuri Kunde Schlesner | 2014-12-28 | 1 | -6/+6 |
| | |||||
* | Merge pull request #291 from purpasmart96/license | bunnei | 2014-12-21 | 1 | -1/+1 |
|\ | | | | | License change | ||||
| * | License change | purpasmart96 | 2014-12-21 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #316 from yuriks/thread-handle | bunnei | 2014-12-20 | 1 | -0/+12 |
|\ \ | |/ |/| | Kernel: Implement support for current thread pseudo-handle | ||||
| * | Kernel: Implement support for current thread pseudo-handle | Yuri Kunde Schlesner | 2014-12-20 | 1 | -0/+12 |
| | | | | | | | | This boots a few (mostly Nintendo 1st party) games further. | ||||
* | | Filesystem/Archives: Implemented the SaveData archive | Subv | 2014-12-18 | 1 | -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 type | Yuri Kunde Schlesner | 2014-12-15 | 1 | -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 arguments | Lioncash | 2014-12-13 | 1 | -3/+3 |
| | |||||
* | Convert old logging calls to new logging macros | Yuri Kunde Schlesner | 2014-12-13 | 1 | -7/+10 |
| | |||||
* | kernel: Make some functions const | Lioncash | 2014-12-04 | 1 | -2/+2 |
| | |||||
* | HLE: Revamp error handling throrough the HLE code | Yuri Kunde Schlesner | 2014-11-24 | 1 | -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 generated | Emmanuel Gil Peyrot | 2014-11-19 | 1 | -5/+5 |
| | |||||
* | Remove extraneous semicolons | Lioncash | 2014-11-18 | 1 | -1/+1 |
| | |||||
* | Kernel: Add a Directory object and a getter for it from an Archive object. | Emmanuel Gil Peyrot | 2014-09-17 | 1 | -0/+1 |
| | |||||
* | Core: Use std::array for managing kernel object space | Lioncash | 2014-08-19 | 1 | -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*. | Lioncash | 2014-08-18 | 1 | -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. | bunnei | 2014-07-09 | 1 | -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. | bunnei | 2014-06-27 | 1 | -0/+1 |
| | |||||
* | Kernel: Added freeing of kernel objects on emulator shutdown. | bunnei | 2014-06-13 | 1 | -0/+6 |
| | |||||
* | Kernel: Updated several member functions to be const | bunnei | 2014-06-13 | 1 | -2/+2 |
| | |||||
* | Kernel: Made SyncRequest not pure virtual, with a default implementation of error (as this is not required for all kernel objects) | bunnei | 2014-06-13 | 1 | -2/+4 |
| | |||||
* | kernel: moved position of * for GetTypeName and GetName | bunnei | 2014-06-03 | 1 | -2/+2 |
| | |||||
* | kernel: changed main thread priority to default, updated Kernel::Reschedule to use PrepareReschedule | bunnei | 2014-06-02 | 1 | -0/+1 |
| | |||||
* | kernel: added WaitSynchronization method to Kernel::Object | bunnei | 2014-05-27 | 1 | -0/+7 |
| | |||||
* | kernel: updated SyncRequest to take boolean thread wait result as a parameter | bunnei | 2014-05-27 | 1 | -1/+8 |
| | |||||
* | kernel: added enum for known CurrentThread and CurrentProcess handles | bunnei | 2014-05-27 | 1 | -0/+5 |
| | |||||
* | kernel: add a SyncRequest method to KernelObject for use with svcSendSyncRequest | bunnei | 2014-05-27 | 1 | -0/+1 |
| | |||||
* | kernel: refactored function naming to remove "__" prefix | bunnei | 2014-05-23 | 1 | -2/+7 |
| | |||||
* | kernel: fixed include, in general include "common.h" not "common_types.h" | bunnei | 2014-05-21 | 1 | -1/+1 |
| | |||||
* | - created a Kernel namespace | bunnei | 2014-05-21 | 1 | -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's | bunnei | 2014-05-19 | 1 | -4/+5 |
| | | | | - various cleanups | ||||
* | - moved Handle/Result definitions to kernel.h | bunnei | 2014-05-19 | 1 | -1/+2 |
| | | | | - added ResetType enum | ||||
* | - replaced KERNELOBJECT_MAX_NAME_LENGTH with KERNEL_MAX_NAME_LENGTH | bunnei | 2014-05-17 | 1 | -3/+2 |
| | | | | - added KERNEL_DEFAULT_STACK_SIZE definition (0x4000) | ||||
* | changed "UID" to "Handle" to be a little more consistent with CTR naming | bunnei | 2014-05-16 | 1 | -13/+16 |
| | |||||
* | - added __KernelLoadExec function | bunnei | 2014-05-14 | 1 | -13/+24 |
| | | | | - fixed some logging | ||||
* | added initial kernel/thread modules | bunnei | 2014-05-10 | 1 | -0/+121 |