summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/srv.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-05-25Kernel: Centralize error definitions in errors.hYuri Kunde Schlesner1-3/+1
2016-12-14Fixed the codestyle to match our clang-format rules.Subv1-1/+1
2016-12-11Add all services to the Service namespaceLioncash1-14/+10
Previously there was a split where some of the services were in the Service namespace and others were not.
2016-12-08Use std::move where appropriate.Subv1-5/+0
2016-12-05Return an error code when connecting to a saturated port.Subv1-2/+6
The error code was taken from the 3DS kernel.
2016-12-05KServerPorts now have an HLE handler "template", which is inherited by all ServerSessions created from it.Subv1-11/+3
2016-12-01Threads do not wait for the server endpoint to call AcceptSession before returning from a ConnectToPort or GetServiceHandle call.Subv1-1/+2
2016-12-01Fixed the rebase mistakes.Subv1-2/+1
2016-12-01A bit of a redesign.Subv1-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.
2016-12-01 Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication.Subv1-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.
2016-09-21Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner1-1/+1
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot1-2/+1
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot1-24/+26
2016-08-02fix #1942 and adds a few IPC functions for descriptorsLectem1-1/+1
2016-05-31Fix parameter name in EnableNotificationmailwl1-2/+2
2016-05-31Fix mistakes, add output header codesmailwl1-8/+24
2016-05-31remove ugly functionmailwl1-35/+3
2016-05-31srv: Update according 3dbrewmailwl1-15/+137
2016-03-13svc: Move ResetType enum to the kernel event headerLioncash1-1/+1
2016-03-12svc: Make ResetType an enum classLioncash1-1/+1
2016-02-02services: Get rid of unnecessary includesLioncash1-1/+1
2015-07-17Ensure all kernel objects are released during shutdownYuri Kunde Schlesner1-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.
2015-05-07Common: Remove common.hYuri Kunde Schlesner1-0/+2
2015-02-02Kernel: Stop creating useless Handles during object creationYuri Kunde Schlesner1-1/+1
They're finally unnecessary, and will stop cluttering the application's handle table.
2015-02-02Service: Clean-up InterfaceYuri Kunde Schlesner1-1/+1
2015-02-02Make Port/Service registration and querying more HW-accurateYuri Kunde Schlesner1-3/+3
2015-01-30Kernel: Convert Event to not use HandlesYuri Kunde Schlesner1-4/+4
2015-01-22Event: Fixed some bugs and cleanup (Subv)bunnei1-1/+1
2015-01-10Logging: Log all called service functions (under trace). Compile out all trace logs under release for performance.archshift1-4/+0
2015-01-06Services: Clean up a few things and add a few function namespurpasmart961-7/+9
2014-12-26More services & small clean upspurpasmart961-3/+0
2014-12-21License changepurpasmart961-1/+1
2014-12-15Remove SyncRequest from K::Object and create a new K::Session typeYuri Kunde Schlesner1-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.)
2014-12-13Convert old logging calls to new logging macrosYuri Kunde Schlesner1-4/+4
2014-11-24HLE: Revamp error handling throrough the HLE codeYuri Kunde Schlesner1-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.
2014-11-19Add static to some variablesLioncash1-1/+1
2014-11-18core: Mark some hle functions as staticLioncash1-3/+3
These functions are not referred to by their linkage name outside of the translation unit, so they can be marked as static.
2014-11-02Added ReceiveNotification, PublishToSubscriber unimplemented functions to SRVarchshift1-0/+2
2014-09-09core: Prune redundant includesarchshift1-1/+0
2014-08-31srv::Initialize: Return "success" status code.bunnei1-0/+4
2014-08-28srv::Initialize: Return "success" status code.bunnei1-0/+4
2014-08-06SRV: Updated GetProcSemaphore to create an event instead of a mutex.bunnei1-8/+10
2014-06-13HLE: Updated all uses of NULL to nullptr (to be C++11 compliant)bunnei1-4/+4
2014-06-03svc: added optional name field to Event and Mutex (used for debugging)bunnei1-1/+1
2014-05-30srv: fix to log unimplemented service (instead of crash)bunnei1-6/+2
2014-05-30hle: cleaned up log messagesbunnei1-3/+3
2014-05-30srv: changed a NOTICE_LOG to DEBUG_LOGbunnei1-1/+1
2014-05-27srv: added a real mutex for GetProcSemaphore (instead of stubbed)bunnei1-3/+10
2014-05-19renamed "UID" to "Handle" where appropriatebunnei1-2/+2
2014-05-19- moved Handle/Result definitions to kernel.hbunnei1-1/+1
- added ResetType enum
2014-05-17added stubbed GetProcSemaphore - does nothing but avoids an exceptionbunnei1-1/+7
2014-05-08- removed HLE mem "hack" and replaced with kernel mem regionbunnei1-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)
2014-04-25- refactored how service functions are calledbunnei1-3/+3
- added option to create/delete service handles
2014-04-17fixed bug with printing std::string in log messagesbunnei1-2/+2
2014-04-17updated service commentsbunnei1-0/+3
2014-04-16- added stubbed out GSP::Gpu service interfacebunnei1-1/+1
- various cleanups/refactors to HLE services
2014-04-16restructured hle:services completely to use function lookup tablesbunnei1-0/+55