Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Service: Add new ServiceFramework framework for writing HLE services | Yuri Kunde Schlesner | 2017-06-08 | 1 | -0/+150 |
| | | | | | | | | | | | | The old "Interface" class had a few problems such as using free functions (Which didn't allow you to write the service handler as if it were a regular class.) which weren't very extensible. (Only received one parameter with a pointer to the Interface object.) The new ServiceFramework aims to solve these problems by working with member functions and passing a generic context struct as parameter. This struct can be extended in the future without having to update all existing service implementations. | ||||
* | Service: Remove unnecessary includes from service.h | Yuri Kunde Schlesner | 2017-06-06 | 1 | -5/+7 |
| | | | | | This has a huge fallout in terms of needing to fix other files because all service implementations included that file. | ||||
* | Service: Make service registration part of the sm implementation | Yuri Kunde Schlesner | 2017-06-06 | 1 | -2/+0 |
| | | | | Also enhances the GetServiceHandle implementation to be more accurate. | ||||
* | HLE: Move SessionRequestHandler from Service:: to Kernel:: | Yuri Kunde Schlesner | 2017-06-06 | 1 | -43/+2 |
| | | | | | Most of the code that works with this is or will be in the kernel, so it's a more appropriate place for it to be. | ||||
* | Kernel: Move HandleTable to a separate file | Yuri Kunde Schlesner | 2017-05-30 | 1 | -1/+0 |
| | |||||
* | IPC helpers example | Lectem | 2016-12-26 | 1 | -0/+1 |
| | |||||
* | Fixed the codestyle to match our clang-format rules. | Subv | 2016-12-14 | 1 | -8/+13 |
| | |||||
* | Moved the HLE command buffer translation task to ServerSession instead of the HLE handler superclass. | Subv | 2016-12-09 | 1 | -20/+10 |
| | |||||
* | Added a framework for partially handling Session disconnections. | Subv | 2016-12-08 | 1 | -0/+18 |
| | | | | | | Further implementation will happen in a future commit. Fixes a regression. | ||||
* | Use std::move where appropriate. | Subv | 2016-12-08 | 1 | -156/+3 |
| | |||||
* | HLE: Use a member variable instead of a virtual function to retrieve the max number of sessions that can be connected to an HLE service at the same time. | Subv | 2016-12-05 | 1 | -5/+13 |
| | |||||
* | Split SessionRequestHandler::HandleSyncRequest into HandleSyncRequest, TranslateRequest and HandleSyncRequestImpl. | Subv | 2016-12-05 | 1 | -6/+22 |
| | | | | HandleSyncRequest now takes care of calling the command buffer translate function before actually invoking the command handler for HLE services. | ||||
* | KServerPorts now have an HLE handler "template", which is inherited by all ServerSessions created from it. | Subv | 2016-12-05 | 1 | -4/+10 |
| | |||||
* | Fixed the rebase mistakes. | Subv | 2016-12-01 | 1 | -25/+25 |
| | |||||
* | A bit of a redesign. | Subv | 2016-12-01 | 1 | -5/+174 |
| | | | | | | | 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. | ||||
* | IPC/HLE: Associate the ClientSessions with their parent port's HLE interface if it exists. | Subv | 2016-12-01 | 1 | -1/+1 |
| | | | | Pass the triggering ServerSession to the HLE command handler to differentiate which session caused the request. | ||||
* | Kernel/HLE: Service::Interface no longer inherits from any Kernel object, and is now its own standalone class. | Subv | 2016-12-01 | 1 | -8/+4 |
| | | | | Interface is now used by aggregation in ClientPort, to forward service commands to their HLE implementation if needed. | ||||
* | fixup! Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication. | Subv | 2016-12-01 | 1 | -1/+1 |
| | |||||
* | Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication. | Subv | 2016-12-01 | 1 | -5/+16 |
| | | | | | | | 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. | ||||
* | Set client SDK version to Service APIs | mailwl | 2016-11-30 | 1 | -0/+12 |
| | |||||
* | Remove empty newlines in #include blocks. | Emmanuel Gil Peyrot | 2016-09-21 | 1 | -3/+0 |
| | | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation. | ||||
* | Sources: Run clang-format on everything. | Emmanuel Gil Peyrot | 2016-09-18 | 1 | -5/+5 |
| | |||||
* | Core: Cleanup file_sys includes. | Emmanuel Gil Peyrot | 2015-06-28 | 1 | -0/+2 |
| | |||||
* | Common: Cleanup key_map includes. | Emmanuel Gil Peyrot | 2015-06-28 | 1 | -1/+0 |
| | |||||
* | Common: Remove common.h | Yuri Kunde Schlesner | 2015-05-07 | 1 | -1/+1 |
| | |||||
* | De-inline functions from Interface, removing them from service.h | Yuri Kunde Schlesner | 2015-04-14 | 1 | -50/+5 |
| | | | | This reduces the time for a full recompile from 65.43s to 59.53s (~9%) | ||||
* | Services: Moved the PTM and APT services to their own folder | Subv | 2015-03-04 | 1 | -0/+3 |
| | | | | | | 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. | ||||
* | Service: Store function names as const char* instead of std::string | Yuri Kunde Schlesner | 2015-02-02 | 1 | -6/+6 |
| | | | | | Uses less memory (strings and function table is stored in constant data) and speeds up start up (no need to allocate and copy strings). | ||||
* | Service: Clean-up Interface | Yuri Kunde Schlesner | 2015-02-02 | 1 | -22/+9 |
| | |||||
* | Make Port/Service registration and querying more HW-accurate | Yuri Kunde Schlesner | 2015-02-02 | 1 | -24/+6 |
| | |||||
* | Logging: Log all called service functions (under trace). Compile out all trace logs under release for performance. | archshift | 2015-01-10 | 1 | -11/+20 |
| | |||||
* | Fix double-free in Service manager during shutdown | Yuri Kunde Schlesner | 2015-01-07 | 1 | -11/+4 |
| | | | | Fixes #423. | ||||
* | Kernel: New handle manager | Yuri Kunde Schlesner | 2014-12-28 | 1 | -2/+3 |
| | | | | | | | | | | | 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. | ||||
* | Rename ObjectPool to HandleTable | Yuri Kunde Schlesner | 2014-12-28 | 1 | -2/+2 |
| | |||||
* | License change | purpasmart96 | 2014-12-21 | 1 | -1/+1 |
| | |||||
* | Remove SyncRequest from K::Object and create a new K::Session type | Yuri Kunde Schlesner | 2014-12-15 | 1 | -18/+8 |
| | | | | | | | 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.) | ||||
* | Convert old logging calls to new logging macros | Yuri Kunde Schlesner | 2014-12-13 | 1 | -7/+1 |
| | |||||
* | Log the cmd_buff arguments when citra comes across an unimplemented function | archshift | 2014-11-25 | 1 | -12/+12 |
| | |||||
* | Remove duplicated docs/update them for changed parameters. | Yuri Kunde Schlesner | 2014-11-24 | 1 | -10/+0 |
| | |||||
* | HLE: Revamp error handling throrough the HLE code | Yuri Kunde Schlesner | 2014-11-24 | 1 | -6/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | -7/+7 |
| | |||||
* | Add `override` keyword through the code. | Yuri Kunde Schlesner | 2014-10-26 | 1 | -5/+5 |
| | | | | This was automated using `clang-modernize`. | ||||
* | core: Pass string by reference in FetchFromPortName and DeleteService | Lioncash | 2014-09-06 | 1 | -2/+2 |
| | |||||
* | Core: Alter the kernel string functions to use std::string instead of const char*. | Lioncash | 2014-08-18 | 1 | -5/+5 |
| | | | | Most functions already operate on std::strings. This also removes the need to manually null terminate thread names. | ||||
* | Merge branch 'threading' of https://github.com/bunnei/citra | bunnei | 2014-06-14 | 1 | -10/+30 |
|\ | | | | | | | | | | | Conflicts: src/core/hle/function_wrappers.h src/core/hle/service/gsp.cpp | ||||
| * | HLE: Updated all uses of NULL to nullptr (to be C++11 compliant) | bunnei | 2014-06-13 | 1 | -1/+1 |
| | | |||||
| * | Kernel: Updated several member functions to be const | bunnei | 2014-06-13 | 1 | -2/+2 |
| | | |||||
| * | service: added a error log messages for unimplemented WaitSynchronization | bunnei | 2014-06-05 | 1 | -0/+1 |
| | | |||||
| * | service: cleaned up log messages | bunnei | 2014-05-30 | 1 | -2/+2 |
| | | |||||
| * | service: added additional hack to return success on unimplemented service calls | bunnei | 2014-05-30 | 1 | -2/+10 |
| | | |||||
| * | service: changed interface to return 0 (no error) when a service method is unimplemented - hack to make apps boot further | bunnei | 2014-05-29 | 1 | -2/+2 |
| | | |||||
| * | kernel: added WaitSynchronization method to Kernel::Object | bunnei | 2014-05-27 | 1 | -0/+10 |
| | | |||||
| * | kernel: updated SyncRequest to take boolean thread wait result as a parameter | bunnei | 2014-05-27 | 1 | -3/+4 |
| | | |||||
| * | service: Renamed Sync to SyncRequest | bunnei | 2014-05-27 | 1 | -1/+1 |
| | | |||||
* | | service: fixed typo that MSVC did not catch as an error | bunnei | 2014-05-23 | 1 | -1/+1 |
|/ | |||||
* | service: removed redundant include of common_types.h | bunnei | 2014-05-21 | 1 | -1/+0 |
| | |||||
* | renamed "syscall" module to "svc" (more accurate naming) | bunnei | 2014-05-21 | 1 | -1/+1 |
| | |||||
* | - created a Kernel namespace | bunnei | 2014-05-21 | 1 | -6/+6 |
| | | | | | - cleaned up Kernel code a bit (moved stuff into namespace, fixed whitespace issues) - added handle types for all different CTROS handles | ||||
* | - renamed NewHandle to CreateHandle | bunnei | 2014-05-19 | 1 | -5/+7 |
| | | | | - updated CreateHandle/DeleteHandle to use KernelObject's | ||||
* | - updated service(s) to be KernelObject's | bunnei | 2014-05-19 | 1 | -36/+15 |
| | | | | - various cleanups | ||||
* | renamed "UID" to "Handle" where appropriate | bunnei | 2014-05-19 | 1 | -12/+10 |
| | |||||
* | - moved Handle/Result definitions to kernel.h | bunnei | 2014-05-19 | 1 | -5/+7 |
| | | | | - added ResetType enum | ||||
* | - removed HLE mem "hack" and replaced with kernel mem region | bunnei | 2014-05-08 | 1 | -1/+11 |
| | | | | | - added a helper function for getting command buffer for services - fixed bug where GSP DMA was incorrectly being done in DataSynchronizationBarrier (instead of gsp_TriggerCmdReqQueue) | ||||
* | fixed weird spacing | bunnei | 2014-04-28 | 1 | -1/+1 |
| | |||||
* | - refactored how service functions are called | bunnei | 2014-04-25 | 1 | -8/+32 |
| | | | | - added option to create/delete service handles | ||||
* | - added stubbed out GSP::Gpu service interface | bunnei | 2014-04-16 | 1 | -4/+6 |
| | | | | - various cleanups/refactors to HLE services | ||||
* | restructured hle:services completely to use function lookup tables | bunnei | 2014-04-16 | 1 | -2/+26 |
| | |||||
* | - extracted srv: calls from service.cpp and put in its own module | bunnei | 2014-04-16 | 1 | -8/+11 |
| | | | | | - added function tables for service calls - lots of refactoring | ||||
* | added framework for APT service (application and title launching service) | bunnei | 2014-04-13 | 1 | -0/+1 |
| | |||||
* | cleanups to service HLE | bunnei | 2014-04-13 | 1 | -2/+2 |
| | |||||
* | - added HLE to connect to "srv:" service | bunnei | 2014-04-13 | 1 | -2/+55 |
| | | | | | | - added a manager for keeping track of services/ports - added a memory mapped region for memory accessed by HLE - added HLE for GetThreadCommandBuffer function | ||||
* | - renamed hle_syscall to just syscall | bunnei | 2014-04-12 | 1 | -0/+60 |
- added service.h as an initial service interface |