summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/srv.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Kernel: Centralize error definitions in errors.hYuri Kunde Schlesner2017-05-251-3/+1
|
* Merge pull request #2249 from Subv/sessions_v3Yuri Kunde Schlesner2016-12-151-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.Subv2016-12-141-1/+1
| |
| * Use std::move where appropriate.Subv2016-12-081-5/+0
| |
| * Return an error code when connecting to a saturated port.Subv2016-12-051-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.Subv2016-12-051-11/+3
| |
| * Threads do not wait for the server endpoint to call AcceptSession before returning from a ConnectToPort or GetServiceHandle call.Subv2016-12-011-1/+2
| |
| * Fixed the rebase mistakes.Subv2016-12-011-2/+1
| |
| * A bit of a redesign.Subv2016-12-011-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.Subv2016-12-011-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 namespaceLioncash2016-12-111-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-includeYuri Kunde Schlesner2016-09-211-1/+1
|
* Remove empty newlines in #include blocks.Emmanuel Gil Peyrot2016-09-211-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 Peyrot2016-09-181-24/+26
|
* fix #1942 and adds a few IPC functions for descriptorsLectem2016-08-021-1/+1
|
* Fix parameter name in EnableNotificationmailwl2016-05-311-2/+2
|
* Fix mistakes, add output header codesmailwl2016-05-311-8/+24
|
* remove ugly functionmailwl2016-05-311-35/+3
|
* srv: Update according 3dbrewmailwl2016-05-311-15/+137
|
* svc: Move ResetType enum to the kernel event headerLioncash2016-03-131-1/+1
|
* svc: Make ResetType an enum classLioncash2016-03-121-1/+1
|
* services: Get rid of unnecessary includesLioncash2016-02-021-1/+1
|
* Ensure all kernel objects are released during shutdownYuri Kunde Schlesner2015-07-171-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.hYuri Kunde Schlesner2015-05-071-0/+2
|
* Kernel: Stop creating useless Handles during object creationYuri Kunde Schlesner2015-02-021-1/+1
| | | | | They're finally unnecessary, and will stop cluttering the application's handle table.
* Service: Clean-up InterfaceYuri Kunde Schlesner2015-02-021-1/+1
|
* Make Port/Service registration and querying more HW-accurateYuri Kunde Schlesner2015-02-021-3/+3
|
* Kernel: Convert Event to not use HandlesYuri Kunde Schlesner2015-01-301-4/+4
|
* Event: Fixed some bugs and cleanup (Subv)bunnei2015-01-221-1/+1
|
* Logging: Log all called service functions (under trace). Compile out all trace logs under release for performance.archshift2015-01-101-4/+0
|
* Services: Clean up a few things and add a few function namespurpasmart962015-01-061-7/+9
|
* More services & small clean upspurpasmart962014-12-261-3/+0
|
* License changepurpasmart962014-12-211-1/+1
|
* Remove SyncRequest from K::Object and create a new K::Session typeYuri Kunde Schlesner2014-12-151-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 macrosYuri Kunde Schlesner2014-12-131-4/+4
|
* HLE: Revamp error handling throrough the HLE codeYuri Kunde Schlesner2014-11-241-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 variablesLioncash2014-11-191-1/+1
|
* core: Mark some hle functions as staticLioncash2014-11-181-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 SRVarchshift2014-11-021-0/+2
|
* core: Prune redundant includesarchshift2014-09-091-1/+0
|
* srv::Initialize: Return "success" status code.bunnei2014-08-281-0/+4
|
* SRV: Updated GetProcSemaphore to create an event instead of a mutex.bunnei2014-08-061-8/+10
|
* HLE: Updated all uses of NULL to nullptr (to be C++11 compliant)bunnei2014-06-131-4/+4
|
* svc: added optional name field to Event and Mutex (used for debugging)bunnei2014-06-031-1/+1
|
* srv: fix to log unimplemented service (instead of crash)bunnei2014-05-301-6/+2
|
* hle: cleaned up log messagesbunnei2014-05-301-3/+3
|
* srv: changed a NOTICE_LOG to DEBUG_LOGbunnei2014-05-301-1/+1
|
* srv: added a real mutex for GetProcSemaphore (instead of stubbed)bunnei2014-05-271-3/+10
|
* renamed "UID" to "Handle" where appropriatebunnei2014-05-191-2/+2
|
* - moved Handle/Result definitions to kernel.hbunnei2014-05-191-1/+1
| | | | - added ResetType enum
* added stubbed GetProcSemaphore - does nothing but avoids an exceptionbunnei2014-05-171-1/+7
|
* - removed HLE mem "hack" and replaced with kernel mem regionbunnei2014-05-081-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 calledbunnei2014-04-251-3/+3
| | | | - added option to create/delete service handles
* fixed bug with printing std::string in log messagesbunnei2014-04-171-2/+2
|
* updated service commentsbunnei2014-04-171-0/+3
|
* - added stubbed out GSP::Gpu service interfacebunnei2014-04-161-1/+1
| | | | - various cleanups/refactors to HLE services
* restructured hle:services completely to use function lookup tablesbunnei2014-04-161-0/+55