Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #291 from purpasmart96/license | bunnei | 2014-12-21 | 1 | -1/+1 |
|\ | | | | | License change | ||||
| * | License change | purpasmart96 | 2014-12-21 | 1 | -1/+1 |
| | | |||||
* | | Thread: Wait current thread on svc_SleepThread | bunnei | 2014-12-21 | 1 | -1/+2 |
|/ | | | | | | - Removed unused VBLANK sleep mode - Added error log for bad context switch - Renamed VerifyWait to CheckWaitType to be more clear | ||||
* | Merge pull request #185 from purpasmart96/mem_perm | bunnei | 2014-12-18 | 1 | -0/+4 |
|\ | | | | | Kernel: Add missing permissions | ||||
| * | Kernel:Add missing permissions in shared memory & svc | purpasmart96 | 2014-11-19 | 1 | -0/+4 |
| | | |||||
* | | Remove SyncRequest from K::Object and create a new K::Session type | Yuri Kunde Schlesner | 2014-12-15 | 1 | -7/+4 |
| | | | | | | | | | | | | | | 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.) | ||||
* | | Kernel/Semaphores: Fixed build | Subv | 2014-12-13 | 1 | -2/+2 |
| | | |||||
* | | SVC: Implemented ReleaseSemaphore. | Subv | 2014-12-13 | 1 | -3/+10 |
| | | | | | | | | This behavior was tested on hardware, however i'm still not sure what use the "initial_count" parameter has | ||||
* | | SVC: Implemented svcCreateSemaphore | Subv | 2014-12-13 | 1 | -1/+10 |
| | | | | | | | | | | ToDo: Implement svcReleaseSemaphore * Some testing against hardware needed | ||||
* | | Convert old logging calls to new logging macros | Yuri Kunde Schlesner | 2014-12-13 | 1 | -27/+27 |
| | | |||||
* | | MemMap: Renamed "GSP" heap to "linear", as this is not specific to GSP. | bunnei | 2014-12-12 | 1 | -1/+1 |
| | | | | | | | | - Linear simply indicates that the mapped physical address is always MappedVAddr+0x0C000000, thus this memory can be used for hardware devices' DMA (such as the GPU). | ||||
* | | SVC: Implemented GetThreadId. | Subv | 2014-12-04 | 1 | -4/+5 |
| | | | | | | | | For now threads are using their Handle value as their Id, it should not really cause any problems because Handle values are unique in Citra, but it should be changed. I left a ToDo there because this is not correct behavior as per hardware. | ||||
* | | SVC: Add debug log to ArbitrateAddress. | bunnei | 2014-11-26 | 1 | -0/+2 |
| | | |||||
* | | SVC: SleepThread should yield to the next ready thread. | bunnei | 2014-11-26 | 1 | -0/+3 |
| | | |||||
* | | HLE: Revamp error handling throrough the HLE code | Yuri Kunde Schlesner | 2014-11-24 | 1 | -31/+37 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 or generated | Emmanuel Gil Peyrot | 2014-11-19 | 1 | -14/+14 |
| | | |||||
* | | core: Mark some hle functions as static | Lioncash | 2014-11-18 | 1 | -26/+26 |
|/ | | | | These functions are not referred to by their linkage name outside of the translation unit, so they can be marked as static. | ||||
* | Fix some warnings | Sean | 2014-10-30 | 1 | -3/+3 |
| | |||||
* | Merge pull request #99 from archshift/ext-check | bunnei | 2014-09-11 | 1 | -1/+1 |
|\ | | | | | loader.cpp: improved file extension checking, made Upper/LowerStr useful, moved string_util into Common namespace | ||||
| * | Added string_util to common, small changes in loader.cpp | archshift | 2014-09-09 | 1 | -1/+1 |
| | | |||||
* | | core: Prune redundant includes | archshift | 2014-09-09 | 1 | -3/+0 |
|/ | |||||
* | Merge pull request #55 from lioncash/string | bunnei | 2014-08-19 | 1 | -5/+5 |
|\ | | | | | Core: Alter the kernel string functions to use std::string instead of const char*. | ||||
| * | Core: Alter the kernel string functions to use std::string instead of const char*. | Lioncash | 2014-08-18 | 1 | -5/+5 |
| | | | | | | | | Most functions already operate on std::strings. This also removes the need to manually null terminate thread names. | ||||
* | | SVC: Added support for svc_GetSystemTick. | bunnei | 2014-08-19 | 1 | -1/+6 |
|/ | | | | Changed HLE function return methods to be static inline functions. | ||||
* | Core: Fix a formatting error in svc.cpp | Lioncash | 2014-08-17 | 1 | -3/+2 |
| | | | | | 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. | bunnei | 2014-08-08 | 1 | -1/+1 |
| | |||||
* | SVC: Removed ArbitrateAddress log message that spams to much. | bunnei | 2014-08-06 | 1 | -2/+0 |
| | |||||
* | Kernel: Added preliminary support for address arbiters. | bunnei | 2014-07-09 | 1 | -8/+10 |
| | | | | | | | | 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. | bunnei | 2014-07-05 | 1 | -10/+9 |
| | | | | - Also added some safety checks to MapSharedMemory. | ||||
* | GSP: Fixed to use real shared memory object, various cleanups. | bunnei | 2014-07-05 | 1 | -5/+6 |
| | | | | | | | | - 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. | bunnei | 2014-06-13 | 1 | -126/+126 |
| | |||||
* | SVC: Cleaned up function wrappers to pass in correct argument types. | bunnei | 2014-06-13 | 1 | -148/+138 |
| | |||||
* | SVC: Moved declaration of "wait" variable in SendSyncRequest for improved readability. | bunnei | 2014-06-13 | 1 | -1/+1 |
| | |||||
* | HLE: Updated all uses of NULL to nullptr (to be C++11 compliant) | bunnei | 2014-06-13 | 1 | -107/+107 |
| | |||||
* | HLE: Updated various handle debug assertions to be more clear. | bunnei | 2014-06-13 | 1 | -6/+6 |
| | |||||
* | Kernel: Added real support for thread and event blocking | bunnei | 2014-06-13 | 1 | -28/+31 |
| | | | | | | | | | | | | | - 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 argument | bunnei | 2014-06-02 | 1 | -3/+3 |
| | |||||
* | svc: changed DuplicateHandle log message from "error" to "debug" | bunnei | 2014-06-02 | 1 | -1/+1 |
| | |||||
* | svc: added GetThreadPriority and SetThreadPriority, added (incomplete) DuplicateHandle support | bunnei | 2014-06-02 | 1 | -3/+26 |
| | |||||
* | kernel: changed main thread priority to default, updated Kernel::Reschedule to use PrepareReschedule | bunnei | 2014-06-02 | 1 | -2/+7 |
| | |||||
* | svc: cleaned up function_wrappers, updated various SVCs to make use of pointer arguments | bunnei | 2014-06-02 | 1 | -16/+18 |
| | |||||
* | svc: updated waitSychronization to not overwrite handle on return, added stub for SleepThread (does nothing) | bunnei | 2014-06-01 | 1 | -2/+21 |
| | |||||
* | hle: cleaned up log messages | bunnei | 2014-05-30 | 1 | -27/+28 |
| | |||||
* | svc: updated OutputDebugString to use OS_LOG | bunnei | 2014-05-30 | 1 | -1/+1 |
| | |||||
* | svc: changed unimplemented SVC log messages from "debug" messages to "error" messages | bunnei | 2014-05-30 | 1 | -8/+8 |
| | |||||
* | svc: added svcClearEvent, stubbed function for svcArbitrateAddress, and various fixes | bunnei | 2014-05-30 | 1 | -22/+32 |
| | | | | | | - 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 CreateEvent | bunnei | 2014-05-28 | 1 | -14/+54 |
| | |||||
* | kernel: updated SyncRequest to take boolean thread wait result as a parameter | bunnei | 2014-05-27 | 1 | -2/+9 |
| | |||||
* | svc: added some assertions | bunnei | 2014-05-27 | 1 | -6/+4 |
| | |||||
* | svc: changed SendSyncRequest to use Kernel::Object SyncRequest (instead of just service Interface class) | bunnei | 2014-05-27 | 1 | -2/+2 |
| | |||||
* | svc: added stub for DuplicateHandle SVC call | bunnei | 2014-05-27 | 1 | -1/+8 |
| | |||||
* | svc: added a check to ensure that a service was implemented before attempting to connect to its port | bunnei | 2014-05-23 | 1 | -1/+5 |
| | |||||
* | thread: renamed "WaitCurThread" to "WaitCurrentThread", removed unused "reason" argument | bunnei | 2014-05-23 | 1 | -2/+2 |
| | |||||
* | thread: removed unused SwitchContext/Reschedule reason field, added missing arg parameter to SVC CreateThread | bunnei | 2014-05-23 | 1 | -8/+5 |
| | |||||
* | svc: added Kernel::Reschedule to svc WaitSynchronization1, updated log messages to include newly created handles | bunnei | 2014-05-22 | 1 | -4/+7 |
| | |||||
* | svc: enabled use of newly created kernel thread handle | bunnei | 2014-05-21 | 1 | -5/+5 |
| | |||||
* | mutex: refactored the interface to code to return a Mutex* handle | bunnei | 2014-05-21 | 1 | -1/+1 |
| | |||||
* | mutex: initial commit of HLE module | bunnei | 2014-05-21 | 1 | -4/+5 |
| | |||||
* | svc: added some comments | bunnei | 2014-05-21 | 1 | -0/+7 |
| | |||||
* | thread: moved threading calls to the Kernel namespace | bunnei | 2014-05-21 | 1 | -2/+2 |
| | |||||
* | renamed "syscall" module to "svc" (more accurate naming) | bunnei | 2014-05-21 | 1 | -0/+350 |