aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc.cpp
AgeCommit message (Collapse)Author
2018-04-23Merge pull request #370 from Subv/sync_primitivesbunnei
Kernel: Reworked the new kernel synchronization primitives.
2018-04-23Kernel: Implemented mutex priority inheritance.Subv
Verified with a hwtest and implemented based on reverse engineering. Thread A's priority will get bumped to the highest priority among all the threads that are waiting for a mutex that A holds. Once A releases the mutex and ownership is transferred to B, A's priority will return to normal and B's priority will be bumped.
2018-04-20Kernel: Remove unused ConditionVariable class.Subv
2018-04-20Kernel: Properly implemented svcWaitProcessWideKey and svcSignalProcessWideKeySubv
They work in tandem with guest code to provide synchronization primitives along with svcArbitrateLock/Unlock
2018-04-20Kernel: Corrected the implementation of svcArbitrateLock and svcArbitrateUnlock.Subv
Switch mutexes are no longer kernel objects, they are managed in userland and only use the kernel to handle the contention case. Mutex addresses store a special flag value (0x40000000) to notify the guest code that there are still some threads waiting for the mutex to be released. This flag is updated when a thread calls ArbitrateUnlock. TODO: * Fix svcWaitProcessWideKey * Fix svcSignalProcessWideKey * Remove the Mutex class.
2018-04-20resource_limit: Make ResourceTypes an enum classLioncash
Prevents enum identifiers from leaking into the surrounding scope.
2018-04-19common_funcs: Remove ARRAY_SIZE macroLioncash
C++17 has non-member size() which we can just call where necessary.
2018-04-17Various service name fixes - part 2 (rebased) (#322)Hexagon12
* Updated ACC with more service names * Updated SVC with more service names * Updated set with more service names * Updated sockets with more service names * Updated SPL with more service names * Updated time with more service names * Updated vi with more service names
2018-04-02svc: Stub out SetThreadActivity, GetThreadContext.bunnei
2018-03-29svc: Stub GetThreadCoreMask.bunnei
2018-03-19More Warning cleanupsN00byKing
2018-03-19Clean Warnings (?)N00byKing
2018-03-16svc: Use more correct values for GetInfo MapRegion and NewMapRegion.bunnei
2018-03-16MemoryState: Add additional memory states and improve naming.bunnei
2018-03-14core: Move process creation out of global state.bunnei
2018-02-25Merge pull request #215 from N00byKing/umapsharedmmrybunnei
UnmapSharedMemory
2018-02-25(Hopefully) Fix MinGW BuildN00byKing
2018-02-25Add UnmapSharedMemoryN00byKing
C++11 requires spaces on the Identifier Add inttypes include clang
2018-02-22Stub more functionsmailwl
2018-02-18kernel: Use Scheduler class for threading.bunnei
2018-02-04GetInfo: Implement IsCurrentProcessBeingDebugged.bunnei
2018-02-04WaitProcessWideKeyAtomic: Handle case where condition variable was already ↵bunnei
created.
2018-02-03svc: SharedMemory size should be 64-bits and cleanup.bunnei
2018-02-03ArbitrateLock: Assert that requesting_thread is current_thread.bunnei
2018-01-24hle: Remove Domain and SyncObject kernel objects.bunnei
2018-01-20Format: Run the new clang format on everythingJames Rowe
2018-01-19Added CreateSharedMemory & UNIMPLEMENTED() for non existent services. (#113)David
* Added svcCreateSharedMemory * Services which are not implemented now throw UNIMPLEMENTED() * clang-format * changed perms to u32 * removed camelcase
2018-01-18svc: Fix svcGetInfo MapRegionBaseAddr.bunnei
2018-01-17svc: Rename some entries to match their analogue on SwitchBrewLioncash
Makes the codebase a little more consistent with regards to available documentation. Also amends the duplicate case where there was a similar entry at 0x72 named ConnectToPort.
2018-01-17svc: Add CreateJitMemory and MapJitMemory svc stringsLioncash
Makes the table match SwitchBrew for these entries
2018-01-17svc: Clang-format fix.bunnei
2018-01-16SVC: Correct some return values in svcGetInfo and added TitleId and ↵Subv
PrivilegedProcessId stubs. # Conflicts: # src/core/hle/kernel/svc.cpp
2018-01-16Merge pull request #52 from ogniK5377/fspbunnei
added more svcGetInfo pairs for 3.0.0+ support, Changed HEAP_SIZE and TLS_AREA_VADDR. changed mem usage & heap usage stub added, ISelfController, IApplication function stubs. Added SetThreadCoreMask
2018-01-16SetThreadCoreMask stub, time to implement fspDavid Marcec
2018-01-16Added more svcGetInfo pairsDavid Marcec
2018-01-16clang-formatMerryMage
2018-01-14svc: Implement svcMapSharedMemory.bunnei
2018-01-13yuzu: Update license text to be consistent across project.bunnei
2018-01-11core: Include <algorithm> where used.bunnei
2018-01-11svc: Implement GetSystemTick.bunnei
2018-01-10svc: Stub ResetSignal and CreateTransferMemorySubv
2018-01-10svc: Stub SetMemoryAttributeSubv
2018-01-10Threads: Added enum values for the Switch's 4 cpu cores and implemented ↵Subv
svcGetInfo(AllowedCpuIdBitmask)
2018-01-09SVC: Fixed WaitSynchronization with multiple handles when none is ↵Subv
immediately ready.
2018-01-09SVC: Implemented CancelSynchronization.Subv
2018-01-09SVC: Fixed WaitSynchronization with multiple handles when at least one of ↵Subv
them is ready.
2018-01-08kernel: Rename Semaphore to ConditionVariable.bunnei
2018-01-08Kernel: Actually wake up the requested number of threads in Semaphore::Release.Subv
Also properly keep track of data in guest memory, this fixes managing the semaphore from userland. It was found that Semaphores are actually Condition Variables, with Release(1) and Release(-1) being equivalent to notify_one and notify_all. We should change the name of the class to reflect this.
2018-01-08Kernel: Properly keep track of mutex lock data in the guest memory. This ↵Subv
fixes userland locking/unlocking.
2018-01-08Kernel: Allow chaining WaitSynchronization calls inside a wakeup callback.Subv