Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Kernel: Fix a warning introduced with ResourceLimit, and remove the fallback code to prevent it from happening again. | Emmanuel Gil Peyrot | 2015-05-21 | 1 | -2/+1 |
| | |||||
* | Core/ResourceLimits: Implemented the basic structure of ResourceLimits. | Subv | 2015-05-15 | 1 | -1/+2 |
| | | | | | | Implemented svcs GetResourceLimit, GetResourceLimitCurrentValues and GetResourceLimitLimitValues. Note that the resource limits do not currently keep track of used objects, since we have no way to distinguish between an object created by the application, and an object created by some HLE module once we're inside Kernel::T::Create. | ||||
* | Kernel: Remove g_program_id | Yuri Kunde Schlesner | 2015-05-09 | 1 | -6/+0 |
| | | | | This has been obsoleted by the field in Process. | ||||
* | Kernel: Introduce skeleton Process class to hold process data | Yuri Kunde Schlesner | 2015-05-09 | 1 | -7/+3 |
| | |||||
* | Common: Remove common.h | Yuri Kunde Schlesner | 2015-05-07 | 1 | -1/+2 |
| | |||||
* | Move typedefs from kernel.h to more appropriate places | Yuri Kunde Schlesner | 2015-05-07 | 1 | -10/+1 |
| | |||||
* | Kernel: Properly initialize and shutdown all modules. | bunnei | 2015-05-02 | 1 | -2/+3 |
| | |||||
* | Build: Fixed some warnings | Subv | 2015-02-12 | 1 | -1/+1 |
| | |||||
* | Kernel: Make WaitObjects share ownership of Threads waiting on them | Yuri Kunde Schlesner | 2015-02-02 | 1 | -5/+5 |
| | | | | | | | | | | | | | | | | During normal operation, a thread waiting on an WaitObject and the object hold mutual references to each other for the duration of the wait. If a process is forcefully terminated (The CTR kernel has a SVC to do this, TerminateProcess, though no equivalent exists for threads.) its threads would also be stopped and destroyed, leaving dangling pointers in the WaitObjects. The solution is to simply have the Thread remove itself from WaitObjects when it is stopped. The vector of Threads in WaitObject has also been changed to hold SharedPtrs, just in case. (Better to have a reference cycle than a crash.) | ||||
* | Kernel: Remove Object::GetHandle (it's not used anymore :D) | Yuri Kunde Schlesner | 2015-02-02 | 1 | -5/+0 |
| | |||||
* | Kernel: Introduce unique Object ids for debugging | Yuri Kunde Schlesner | 2015-02-02 | 1 | -0/+6 |
| | |||||
* | Remove result.h InvalidHandle | Yuri Kunde Schlesner | 2015-01-30 | 1 | -1/+2 |
| | | | | | It was only being used in two places, where it was replaced by a local constant. | ||||
* | Move VAddr/PAddr typedefs to kernel.h | Yuri Kunde Schlesner | 2015-01-30 | 1 | -0/+5 |
| | |||||
* | Kernel: Renamed some functions for clarity. | bunnei | 2015-01-22 | 1 | -4/+4 |
| | | | | | - ReleaseNextThread->WakeupNextThread - ReleaseAllWaitingThreads->WakeupAllWaitingThreads. | ||||
* | Kernel: Changed "ShouldWait" to return bool and "Acquire" to return void. | bunnei | 2015-01-22 | 1 | -6/+3 |
| | |||||
* | WaitObject: Renamed "Wait" to "ShouldWait", made "ShouldWait" and "Acquire" pure virtual. | bunnei | 2015-01-22 | 1 | -10/+4 |
| | |||||
* | Session: Change to a WaitObject. | bunnei | 2015-01-22 | 1 | -0/+1 |
| | |||||
* | Kernel: Moved Wait and Acquire to WaitObject, added way to retrieve a WaitObject safely. | bunnei | 2015-01-22 | 1 | -16/+55 |
| | |||||
* | Kernel: Get rid of WaitTypes and simplify lots of code, removing hacks. | bunnei | 2015-01-22 | 1 | -3/+2 |
| | |||||
* | WaitSynchronizationN: Refactor to fix several bugs | bunnei | 2015-01-22 | 1 | -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. | bunnei | 2015-01-22 | 1 | -2/+11 |
| | |||||
* | WaitSynchronizationN: Implement return values | bunnei | 2015-01-22 | 1 | -3/+4 |
| | |||||
* | WaitObject: Added RemoveWaitingThread, fixed a bug, and cleanup. | bunnei | 2015-01-22 | 1 | -1/+7 |
| | |||||
* | Kernel: Added WaitObject and changed "waitable" objects inherit from it. | bunnei | 2015-01-22 | 1 | -0/+25 |
| | |||||
* | Kernel: Start using boost::intrusive_ptr for lifetime management | Yuri Kunde Schlesner | 2015-01-09 | 1 | -8/+13 |
| | |||||
* | Kernel: Don't re-assign object's handle when duplicating one | Yuri Kunde Schlesner | 2015-01-09 | 1 | -1/+1 |
| | |||||
* | Thread: Reduce use of Handles and move some funcs to inside the class. | Yuri Kunde Schlesner | 2015-01-09 | 1 | -1/+3 |
| | |||||
* | SVC: Implemented the Timer service calls. | Subv | 2015-01-09 | 1 | -0/+1 |
| | |||||
* | 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 |