- Dec 01, 2016
-
-
Subv authored
-
Subv authored
Sessions and Ports are now detached from each other. HLE services are handled by means of a SessionRequestHandler class, Interface now inherits from this class. The File and Directory classes are no longer kernel objects, but SessionRequestHandlers instead, bound to a ServerSession when requested. File::OpenLinkFile now creates a new session pair and binds the File instance to it.
-
Subv authored
Pass the triggering ServerSession to the HLE command handler to differentiate which session caused the request.
-
Subv authored
Kernel/HLE: Service::Interface no longer inherits from any Kernel object, and is now its own standalone class. Interface is now used by aggregation in ClientPort, to forward service commands to their HLE implementation if needed.
-
Subv authored
fixup! Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication.
-
Subv authored
Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication. All handles obtained via srv::GetServiceHandle or svcConnectToPort are references to ClientSessions. Service modules will wait on the counterpart of those ClientSessions (Called ServerSessions) using svcReplyAndReceive or svcWaitSynchronization[1|N], and will be awoken when a SyncRequest is performed. HLE Interfaces are now ClientPorts which override the HandleSyncRequest virtual member function to perform command handling immediately.
-
- Nov 30, 2016
-
-
mailwl authored
-
- Sep 21, 2016
-
-
Emmanuel Gil Peyrot authored
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
-
- Sep 18, 2016
-
-
Emmanuel Gil Peyrot authored
-
- Jun 27, 2015
-
-
Emmanuel Gil Peyrot authored
-
Emmanuel Gil Peyrot authored
-
- May 07, 2015
-
-
Yuri Kunde Schlesner authored
-
- Apr 14, 2015
-
-
Yuri Kunde Schlesner authored
This reduces the time for a full recompile from 65.43s to 59.53s (~9%)
-
- Mar 04, 2015
-
-
Subv authored
This coincidentally fixes an issue about the PTM service failing to create its SharedExtSaveData archive due to the FS service not being initialized by the time the creating code runs. Ideally I'd like to move each process to its own folder, and have a single file per process that registers the service classes, which would be in their own files inside that folder. Then each service class would just call functions from the process to complete the commands.
-
- Feb 02, 2015
-
-
Yuri Kunde Schlesner authored
Uses less memory (strings and function table is stored in constant data) and speeds up start up (no need to allocate and copy strings).
-
Yuri Kunde Schlesner authored
-
Yuri Kunde Schlesner authored
-
- Jan 10, 2015
-
-
archshift authored
Logging: Log all called service functions (under trace). Compile out all trace logs under release for performance.
-
- Jan 07, 2015
-
-
Yuri Kunde Schlesner authored
Fixes #423.
-
- Dec 28, 2014
-
-
Yuri Kunde Schlesner authored
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.
-
Yuri Kunde Schlesner authored
-
- Dec 21, 2014
-
-
purpasmart96 authored
-
- Dec 15, 2014
-
-
Yuri Kunde Schlesner authored
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.)
-
- Dec 13, 2014
-
-
Yuri Kunde Schlesner authored
-
- Nov 24, 2014
-
-
archshift authored
-
Yuri Kunde Schlesner authored
-
Yuri Kunde Schlesner authored
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.
-
- Nov 19, 2014
-
-
Emmanuel Gil Peyrot authored
-
- Oct 26, 2014
-
-
Yuri Kunde Schlesner authored
This was automated using `clang-modernize`.
-
- Sep 06, 2014
-
-
Lioncash authored
-
- Aug 18, 2014
-
-
Lioncash authored
Most functions already operate on std::strings. This also removes the need to manually null terminate thread names.
-
- Jun 13, 2014
- Jun 04, 2014
-
-
bunnei authored
-
- May 30, 2014
-
-
bunnei authored
-
- May 29, 2014
-
-
bunnei authored
-
- May 28, 2014
-
-
bunnei authored
service: changed interface to return 0 (no error) when a service method is unimplemented - hack to make apps boot further
-
- May 27, 2014