aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/hle/kernel/kernel.h
Commit message (Collapse)AuthorAge
* Kernel: Add CodeSet case to Object::IsWaitableGravatar Yuri Kunde Schlesner2015-07-12
|
* Core: Properly configure address space when loading a binaryGravatar Yuri Kunde Schlesner2015-07-11
| | | | | | The code now properly configures the process image to match the loaded binary segments (code, rodata, data) instead of just blindly allocating a large chunk of dummy memory.
* Common: Cleanup key_map includes.Gravatar Emmanuel Gil Peyrot2015-06-28
|
* kernel: Fix svcWaitSynch to always acquire requested wait objects.Gravatar bunnei2015-06-16
|
* Kernel: Fix a warning introduced with ResourceLimit, and remove the fallback ↵Gravatar Emmanuel Gil Peyrot2015-05-21
| | | | code to prevent it from happening again.
* Core/ResourceLimits: Implemented the basic structure of ResourceLimits.Gravatar Subv2015-05-14
| | | | | | 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_idGravatar Yuri Kunde Schlesner2015-05-08
| | | | This has been obsoleted by the field in Process.
* Kernel: Introduce skeleton Process class to hold process dataGravatar Yuri Kunde Schlesner2015-05-08
|
* Common: Remove common.hGravatar Yuri Kunde Schlesner2015-05-07
|
* Move typedefs from kernel.h to more appropriate placesGravatar Yuri Kunde Schlesner2015-05-06
|
* Kernel: Properly initialize and shutdown all modules.Gravatar bunnei2015-05-01
|
* Build: Fixed some warningsGravatar Subv2015-02-12
|
* Kernel: Make WaitObjects share ownership of Threads waiting on themGravatar Yuri Kunde Schlesner2015-02-02
| | | | | | | | | | | | | | | | 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)Gravatar Yuri Kunde Schlesner2015-02-02
|
* Kernel: Introduce unique Object ids for debuggingGravatar Yuri Kunde Schlesner2015-02-02
|
* Remove result.h InvalidHandleGravatar Yuri Kunde Schlesner2015-01-30
| | | | | It was only being used in two places, where it was replaced by a local constant.
* Move VAddr/PAddr typedefs to kernel.hGravatar Yuri Kunde Schlesner2015-01-30
|
* Kernel: Renamed some functions for clarity.Gravatar bunnei2015-01-21
| | | | | - ReleaseNextThread->WakeupNextThread - ReleaseAllWaitingThreads->WakeupAllWaitingThreads.
* Kernel: Changed "ShouldWait" to return bool and "Acquire" to return void.Gravatar bunnei2015-01-21
|
* WaitObject: Renamed "Wait" to "ShouldWait", made "ShouldWait" and "Acquire" ↵Gravatar bunnei2015-01-21
| | | | pure virtual.
* Session: Change to a WaitObject.Gravatar bunnei2015-01-21
|
* Kernel: Moved Wait and Acquire to WaitObject, added way to retrieve a ↵Gravatar bunnei2015-01-21
| | | | WaitObject safely.
* Kernel: Get rid of WaitTypes and simplify lots of code, removing hacks.Gravatar bunnei2015-01-21
|
* WaitSynchronizationN: Refactor to fix several bugsGravatar bunnei2015-01-21
| | | | | | - 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.Gravatar bunnei2015-01-21
|
* WaitSynchronizationN: Implement return valuesGravatar bunnei2015-01-21
|
* WaitObject: Added RemoveWaitingThread, fixed a bug, and cleanup.Gravatar bunnei2015-01-21
|
* Kernel: Added WaitObject and changed "waitable" objects inherit from it.Gravatar bunnei2015-01-21
|
* Kernel: Start using boost::intrusive_ptr for lifetime managementGravatar Yuri Kunde Schlesner2015-01-09
|
* Kernel: Don't re-assign object's handle when duplicating oneGravatar Yuri Kunde Schlesner2015-01-09
|
* Thread: Reduce use of Handles and move some funcs to inside the class.Gravatar Yuri Kunde Schlesner2015-01-09
|
* SVC: Implemented the Timer service calls.Gravatar Subv2015-01-08
|
* Kernel: New handle managerGravatar Yuri Kunde Schlesner2014-12-28
| | | | | | | | | | | 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 constantsGravatar Yuri Kunde Schlesner2014-12-28
|
* Rename ObjectPool to HandleTableGravatar Yuri Kunde Schlesner2014-12-28
|
* Merge pull request #291 from purpasmart96/licenseGravatar bunnei2014-12-21
|\ | | | | License change
| * License changeGravatar purpasmart962014-12-20
| |
* | Merge pull request #316 from yuriks/thread-handleGravatar bunnei2014-12-20
|\ \ | |/ |/| Kernel: Implement support for current thread pseudo-handle
| * Kernel: Implement support for current thread pseudo-handleGravatar Yuri Kunde Schlesner2014-12-20
| | | | | | | | This boots a few (mostly Nintendo 1st party) games further.
* | Filesystem/Archives: Implemented the SaveData archiveGravatar Subv2014-12-17
|/ | | | | | | | | | 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 typeGravatar Yuri Kunde Schlesner2014-12-15
| | | | | | | 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 argumentsGravatar Lioncash2014-12-13
|
* Convert old logging calls to new logging macrosGravatar Yuri Kunde Schlesner2014-12-13
|
* kernel: Make some functions constGravatar Lioncash2014-12-03
|
* HLE: Revamp error handling throrough the HLE codeGravatar Yuri Kunde Schlesner2014-11-24
| | | | | | | | | | | | | | | | | | | | | | | | | | 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 ↵Gravatar Emmanuel Gil Peyrot2014-11-19
| | | | or generated
* Remove extraneous semicolonsGravatar Lioncash2014-11-18
|
* Kernel: Add a Directory object and a getter for it from an Archive object.Gravatar Emmanuel Gil Peyrot2014-09-17
|
* Core: Use std::array for managing kernel object spaceGravatar Lioncash2014-08-19
| | | | These avoid relying on memset for clearing the arrays.
* Core: Alter the kernel string functions to use std::string instead of const ↵Gravatar Lioncash2014-08-17
| | | | | | char*. Most functions already operate on std::strings. This also removes the need to manually null terminate thread names.