aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/srv.cpp
AgeCommit message (Collapse)Author
2015-07-17Ensure all kernel objects are released during shutdownYuri Kunde Schlesner
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 Schlesner
2015-02-02Kernel: Stop creating useless Handles during object creationYuri Kunde Schlesner
They're finally unnecessary, and will stop cluttering the application's handle table.
2015-02-02Service: Clean-up InterfaceYuri Kunde Schlesner
2015-02-02Make Port/Service registration and querying more HW-accurateYuri Kunde Schlesner
2015-01-30Kernel: Convert Event to not use HandlesYuri Kunde Schlesner
2015-01-21Event: Fixed some bugs and cleanup (Subv)bunnei
2015-01-10Logging: Log all called service functions (under trace). Compile out all ↵archshift
trace logs under release for performance.
2015-01-05Services: Clean up a few things and add a few function namespurpasmart96
2014-12-25More services & small clean upspurpasmart96
2014-12-20License changepurpasmart96
2014-12-15Remove SyncRequest from K::Object and create a new K::Session typeYuri Kunde Schlesner
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 Schlesner
2014-11-24HLE: Revamp error handling throrough the HLE codeYuri Kunde Schlesner
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-18Add static to some variablesLioncash
2014-11-17core: Mark some hle functions as staticLioncash
These functions are not referred to by their linkage name outside of the translation unit, so they can be marked as static.
2014-11-01Added ReceiveNotification, PublishToSubscriber unimplemented functions to SRVarchshift
2014-09-08core: Prune redundant includesarchshift
2014-08-28srv::Initialize: Return "success" status code.bunnei
2014-08-05SRV: Updated GetProcSemaphore to create an event instead of a mutex.bunnei
2014-06-13HLE: Updated all uses of NULL to nullptr (to be C++11 compliant)bunnei
2014-06-02svc: added optional name field to Event and Mutex (used for debugging)bunnei
2014-05-29srv: fix to log unimplemented service (instead of crash)bunnei
2014-05-29hle: cleaned up log messagesbunnei
2014-05-29srv: changed a NOTICE_LOG to DEBUG_LOGbunnei
2014-05-26srv: added a real mutex for GetProcSemaphore (instead of stubbed)bunnei
2014-05-18renamed "UID" to "Handle" where appropriatebunnei
2014-05-18- moved Handle/Result definitions to kernel.hbunnei
- added ResetType enum
2014-05-16added stubbed GetProcSemaphore - does nothing but avoids an exceptionbunnei
2014-05-07- removed HLE mem "hack" and replaced with kernel mem regionbunnei
- 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-24- refactored how service functions are calledbunnei
- added option to create/delete service handles
2014-04-16fixed bug with printing std::string in log messagesbunnei
2014-04-16updated service commentsbunnei
2014-04-16- added stubbed out GSP::Gpu service interfacebunnei
- various cleanups/refactors to HLE services
2014-04-15restructured hle:services completely to use function lookup tablesbunnei