Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Service: Move SRV interface to a new sm/ subdirectory | Yuri Kunde Schlesner | 2017-06-06 | 1 | -188/+0 |
| | | | | | This will contain the implementation of the sm (Service Manager) system module. | ||||
* | Kernel: Centralize error definitions in errors.h | Yuri Kunde Schlesner | 2017-05-25 | 1 | -3/+1 |
| | |||||
* | Merge pull request #2249 from Subv/sessions_v3 | Yuri Kunde Schlesner | 2016-12-15 | 1 | -1/+13 |
|\ | | | | | Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication. | ||||
| * | Fixed the codestyle to match our clang-format rules. | Subv | 2016-12-14 | 1 | -1/+1 |
| | | |||||
| * | Use std::move where appropriate. | Subv | 2016-12-08 | 1 | -5/+0 |
| | | |||||
| * | Return an error code when connecting to a saturated port. | Subv | 2016-12-05 | 1 | -2/+6 |
| | | | | | | | | The error code was taken from the 3DS kernel. | ||||
| * | KServerPorts now have an HLE handler "template", which is inherited by all ServerSessions created from it. | Subv | 2016-12-05 | 1 | -11/+3 |
| | | |||||
| * | Threads do not wait for the server endpoint to call AcceptSession before returning from a ConnectToPort or GetServiceHandle call. | Subv | 2016-12-01 | 1 | -1/+2 |
| | | |||||
| * | Fixed the rebase mistakes. | Subv | 2016-12-01 | 1 | -2/+1 |
| | | |||||
| * | A bit of a redesign. | Subv | 2016-12-01 | 1 | -2/+8 |
| | | | | | | | | | | | | | | 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. | ||||
| * | Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication. | Subv | 2016-12-01 | 1 | -1/+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. | ||||
* | | Add all services to the Service namespace | Lioncash | 2016-12-11 | 1 | -14/+10 |
|/ | | | | | Previously there was a split where some of the services were in the Service namespace and others were not. | ||||
* | Use negative priorities to avoid special-casing the self-include | Yuri Kunde Schlesner | 2016-09-21 | 1 | -1/+1 |
| | |||||
* | Remove empty newlines in #include blocks. | Emmanuel Gil Peyrot | 2016-09-21 | 1 | -2/+1 |
| | | | | | | | 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 | -24/+26 |
| | |||||
* | fix #1942 and adds a few IPC functions for descriptors | Lectem | 2016-08-02 | 1 | -1/+1 |
| | |||||
* | Fix parameter name in EnableNotification | mailwl | 2016-05-31 | 1 | -2/+2 |
| | |||||
* | Fix mistakes, add output header codes | mailwl | 2016-05-31 | 1 | -8/+24 |
| | |||||
* | remove ugly function | mailwl | 2016-05-31 | 1 | -35/+3 |
| | |||||
* | srv: Update according 3dbrew | mailwl | 2016-05-31 | 1 | -15/+137 |
| | |||||
* | svc: Move ResetType enum to the kernel event header | Lioncash | 2016-03-13 | 1 | -1/+1 |
| | |||||
* | svc: Make ResetType an enum class | Lioncash | 2016-03-12 | 1 | -1/+1 |
| | |||||
* | services: Get rid of unnecessary includes | Lioncash | 2016-02-02 | 1 | -1/+1 |
| | |||||
* | Ensure all kernel objects are released during shutdown | Yuri Kunde Schlesner | 2015-07-17 | 1 | -0/+4 |
| | | | | | | | | This commit fixes several kernel object leaks. The most severe of them was threads not being removed from the private handle table used for CoreTiming events. This resulted in Threads never being released, which in turn held references to Process, causing CodeSets to never be freed when loading other applications. | ||||
* | Common: Remove common.h | Yuri Kunde Schlesner | 2015-05-07 | 1 | -0/+2 |
| | |||||
* | Kernel: Stop creating useless Handles during object creation | Yuri Kunde Schlesner | 2015-02-02 | 1 | -1/+1 |
| | | | | | They're finally unnecessary, and will stop cluttering the application's handle table. | ||||
* | Service: Clean-up Interface | Yuri Kunde Schlesner | 2015-02-02 | 1 | -1/+1 |
| | |||||
* | Make Port/Service registration and querying more HW-accurate | Yuri Kunde Schlesner | 2015-02-02 | 1 | -3/+3 |
| | |||||
* | Kernel: Convert Event to not use Handles | Yuri Kunde Schlesner | 2015-01-30 | 1 | -4/+4 |
| | |||||
* | Event: Fixed some bugs and cleanup (Subv) | bunnei | 2015-01-22 | 1 | -1/+1 |
| | |||||
* | Logging: Log all called service functions (under trace). Compile out all trace logs under release for performance. | archshift | 2015-01-10 | 1 | -4/+0 |
| | |||||
* | Services: Clean up a few things and add a few function names | purpasmart96 | 2015-01-06 | 1 | -7/+9 |
| | |||||
* | More services & small clean ups | purpasmart96 | 2014-12-26 | 1 | -3/+0 |
| | |||||
* | 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 | -3/+3 |
| | | | | | | | 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 | -4/+4 |
| | |||||
* | HLE: Revamp error handling throrough the HLE code | Yuri Kunde Schlesner | 2014-11-24 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Add static to some variables | Lioncash | 2014-11-19 | 1 | -1/+1 |
| | |||||
* | core: Mark some hle functions as static | Lioncash | 2014-11-18 | 1 | -3/+3 |
| | | | | These functions are not referred to by their linkage name outside of the translation unit, so they can be marked as static. | ||||
* | Added ReceiveNotification, PublishToSubscriber unimplemented functions to SRV | archshift | 2014-11-02 | 1 | -0/+2 |
| | |||||
* | core: Prune redundant includes | archshift | 2014-09-09 | 1 | -1/+0 |
| | |||||
* | srv::Initialize: Return "success" status code. | bunnei | 2014-08-28 | 1 | -0/+4 |
| | |||||
* | SRV: Updated GetProcSemaphore to create an event instead of a mutex. | bunnei | 2014-08-06 | 1 | -8/+10 |
| | |||||
* | HLE: Updated all uses of NULL to nullptr (to be C++11 compliant) | bunnei | 2014-06-13 | 1 | -4/+4 |
| | |||||
* | svc: added optional name field to Event and Mutex (used for debugging) | bunnei | 2014-06-03 | 1 | -1/+1 |
| | |||||
* | srv: fix to log unimplemented service (instead of crash) | bunnei | 2014-05-30 | 1 | -6/+2 |
| | |||||
* | hle: cleaned up log messages | bunnei | 2014-05-30 | 1 | -3/+3 |
| | |||||
* | srv: changed a NOTICE_LOG to DEBUG_LOG | bunnei | 2014-05-30 | 1 | -1/+1 |
| | |||||
* | srv: added a real mutex for GetProcSemaphore (instead of stubbed) | bunnei | 2014-05-27 | 1 | -3/+10 |
| | |||||
* | renamed "UID" to "Handle" where appropriate | bunnei | 2014-05-19 | 1 | -2/+2 |
| | |||||
* | - moved Handle/Result definitions to kernel.h | bunnei | 2014-05-19 | 1 | -1/+1 |
| | | | | - added ResetType enum | ||||
* | added stubbed GetProcSemaphore - does nothing but avoids an exception | bunnei | 2014-05-17 | 1 | -1/+7 |
| | |||||
* | - removed HLE mem "hack" and replaced with kernel mem region | bunnei | 2014-05-08 | 1 | -1/+1 |
| | | | | | - 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) | ||||
* | - refactored how service functions are called | bunnei | 2014-04-25 | 1 | -3/+3 |
| | | | | - added option to create/delete service handles | ||||
* | fixed bug with printing std::string in log messages | bunnei | 2014-04-17 | 1 | -2/+2 |
| | |||||
* | updated service comments | bunnei | 2014-04-17 | 1 | -0/+3 |
| | |||||
* | - added stubbed out GSP::Gpu service interface | bunnei | 2014-04-16 | 1 | -1/+1 |
| | | | | - various cleanups/refactors to HLE services | ||||
* | restructured hle:services completely to use function lookup tables | bunnei | 2014-04-16 | 1 | -0/+55 |