aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/hle/svc.cpp
Commit message (Collapse)AuthorAge
* HLE: Revamp error handling throrough the HLE codeGravatar Yuri Kunde Schlesner2014-11-24
| | | | | | | | | | | | | | | | | | | | | | | | | | 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 ↵Gravatar Emmanuel Gil Peyrot2014-11-19
| | | | or generated
* core: Mark some hle functions as staticGravatar Lioncash2014-11-17
| | | | These functions are not referred to by their linkage name outside of the translation unit, so they can be marked as static.
* Fix some warningsGravatar Sean2014-10-29
|
* Merge pull request #99 from archshift/ext-checkGravatar bunnei2014-09-11
|\ | | | | loader.cpp: improved file extension checking, made Upper/LowerStr useful, moved string_util into Common namespace
* | core: Prune redundant includesGravatar archshift2014-09-08
| |
| * Added string_util to common, small changes in loader.cppGravatar archshift2014-09-08
|/
* Merge pull request #55 from lioncash/stringGravatar bunnei2014-08-18
|\ | | | | Core: Alter the kernel string functions to use std::string instead of const char*.
* | SVC: Added support for svc_GetSystemTick.Gravatar bunnei2014-08-18
| | | | | | | | Changed HLE function return methods to be static inline functions.
| * Core: Alter the kernel string functions to use std::string instead of const ↵Gravatar Lioncash2014-08-17
|/ | | | | | char*. Most functions already operate on std::strings. This also removes the need to manually null terminate thread names.
* Core: Fix a formatting error in svc.cppGravatar Lioncash2014-08-17
| | | | | entry_point would not be added to the string. Also used StringFromFormat so that the buffer is unnecessary.
* SVC: Fixed typo with MapMemoryBlock DEBUG_LOG call.Gravatar bunnei2014-08-07
|
* SVC: Removed ArbitrateAddress log message that spams to much.Gravatar bunnei2014-08-05
|
* Kernel: Added preliminary support for address arbiters.Gravatar bunnei2014-07-08
| | | | | | | | AddressArbiter: Added documentation comment, fixed whitespace issue. AddressArbiter: Fixed incorrect comment, reordered if-statement to be more clear. SVC: Removed trailing whitespace.
* SharedMemory: Updated MapSharedMemory to use an enum for permissions.Gravatar bunnei2014-07-05
| | | | - Also added some safety checks to MapSharedMemory.
* GSP: Fixed to use real shared memory object, various cleanups.Gravatar bunnei2014-07-05
| | | | | | | | - Previously, used a hard-coded shared memory handle of 0x10002000 (as used by libctru homebrew) GSP: Added name for shared memory. GSP: Cleaned up assertion message.
* SVC: Renamed all function wrapper templates to Wrap, moved to HLE namespace.Gravatar bunnei2014-06-13
|
* SVC: Cleaned up function wrappers to pass in correct argument types.Gravatar bunnei2014-06-13
|
* SVC: Moved declaration of "wait" variable in SendSyncRequest for improved ↵Gravatar bunnei2014-06-13
| | | | readability.
* HLE: Updated all uses of NULL to nullptr (to be C++11 compliant)Gravatar bunnei2014-06-13
|
* HLE: Updated various handle debug assertions to be more clear.Gravatar bunnei2014-06-13
|
* Kernel: Added real support for thread and event blockingGravatar bunnei2014-06-13
| | | | | | | | | | | | | - SVC: Added ExitThread support - SVC: Added SignalEvent support - Thread: Added WAITTYPE_EVENT for waiting threads for event signals - Thread: Added support for blocking on other threads to finish (e.g. Thread::Join) - Thread: Added debug function for printing current threads ready for execution - Thread: Removed hack/broken thread ready state code from Kernel::Reschedule - Mutex: Moved WaitCurrentThread from SVC to Mutex::WaitSynchronization - Event: Added support for blocking threads on event signalling Kernel: Added missing algorithm #include for use of std::find on non-Windows platforms.
* svc: updated WaitSynchronizationN to properly use first pointer argumentGravatar bunnei2014-06-02
|
* svc: changed DuplicateHandle log message from "error" to "debug"Gravatar bunnei2014-06-01
|
* svc: added GetThreadPriority and SetThreadPriority, added (incomplete) ↵Gravatar bunnei2014-06-01
| | | | DuplicateHandle support
* kernel: changed main thread priority to default, updated Kernel::Reschedule ↵Gravatar bunnei2014-06-01
| | | | to use PrepareReschedule
* svc: cleaned up function_wrappers, updated various SVCs to make use of ↵Gravatar bunnei2014-06-01
| | | | pointer arguments
* svc: updated waitSychronization to not overwrite handle on return, added ↵Gravatar bunnei2014-06-01
| | | | stub for SleepThread (does nothing)
* hle: cleaned up log messagesGravatar bunnei2014-05-29
|
* svc: updated OutputDebugString to use OS_LOGGravatar bunnei2014-05-29
|
* svc: changed unimplemented SVC log messages from "debug" messages to "error" ↵Gravatar bunnei2014-05-29
| | | | messages
* svc: added svcClearEvent, stubbed function for svcArbitrateAddress, and ↵Gravatar bunnei2014-05-29
| | | | | | | | various fixes - force kernel reschedule after svcWaitSynchronization - fixed some bugs with passing in pointer arguments - cleaned up some comments and log messages
* svc: implemented WaitSynchronization1, WaitSynchronizationN, and CreateEventGravatar bunnei2014-05-27
|
* kernel: updated SyncRequest to take boolean thread wait result as a parameterGravatar bunnei2014-05-26
|
* svc: added some assertionsGravatar bunnei2014-05-26
|
* svc: changed SendSyncRequest to use Kernel::Object SyncRequest (instead of ↵Gravatar bunnei2014-05-26
| | | | just service Interface class)
* svc: added stub for DuplicateHandle SVC callGravatar bunnei2014-05-26
|
* svc: added a check to ensure that a service was implemented before ↵Gravatar bunnei2014-05-22
| | | | attempting to connect to its port
* thread: renamed "WaitCurThread" to "WaitCurrentThread", removed unused ↵Gravatar bunnei2014-05-22
| | | | "reason" argument
* thread: removed unused SwitchContext/Reschedule reason field, added missing ↵Gravatar bunnei2014-05-22
| | | | arg parameter to SVC CreateThread
* svc: added Kernel::Reschedule to svc WaitSynchronization1, updated log ↵Gravatar bunnei2014-05-21
| | | | messages to include newly created handles
* svc: enabled use of newly created kernel thread handleGravatar bunnei2014-05-20
|
* mutex: refactored the interface to code to return a Mutex* handleGravatar bunnei2014-05-20
|
* mutex: initial commit of HLE moduleGravatar bunnei2014-05-20
|
* svc: added some commentsGravatar bunnei2014-05-20
|
* thread: moved threading calls to the Kernel namespaceGravatar bunnei2014-05-20
|
* renamed "syscall" module to "svc" (more accurate naming)Gravatar bunnei2014-05-20