aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel
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: Use 0x2C as default main thread priority for homebrew and lone NRO/NSOsSubv
2018-04-20Qt: Update the WaitTree widget to show info about the current mutex of each ↵Subv
thread.
2018-04-20Kernel: Remove unused ConditionVariable class.Subv
2018-04-20Kernel: Remove old and unused Mutex code.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-14vm_manager: Increase GetTotalMemoryUsage value.bunnei
- Gets Binding of Isaac running.
2018-04-02svc: Stub out SetThreadActivity, GetThreadContext.bunnei
2018-04-02shared_memory: Remove incorrect 3ds-specific check.bunnei
2018-03-31hle_ipc, fsp_srv: Cleanup logging.bunnei
2018-03-31hle_ipc: Do not ensure write buffer size.bunnei
2018-03-31memory: Fix stack region.bunnei
2018-03-29svc: Stub GetThreadCoreMask.bunnei
2018-03-19Clang FixesN00byKing
2018-03-19More Warning cleanupsN00byKing
2018-03-19Clean Warnings (?)N00byKing
2018-03-18hle_ipc: Add SleepClientThread to block current thread within HLE routines.bunnei
2018-03-18hle_ipc: Use shared_ptr instead of unique_ptr to allow copies.bunnei
2018-03-18hle_ipc: Remove GetPointer(..) usage with WriteToOutgoingCommandBuffer.bunnei
2018-03-18thread: Add THREADSTATUS_WAIT_HLE_EVENT, remove THREADSTATUS_WAIT_ARB.bunnei
2018-03-16process: MirrorMemory should use MemoryState::Mapped.bunnei
2018-03-16process: Unmap previously allocated heap.bunnei
2018-03-16arm_interface: Support unmapping previously mapped memory.bunnei
2018-03-16svc: Use more correct values for GetInfo MapRegion and NewMapRegion.bunnei
2018-03-16kernel: Move stack region outside of application heap.bunnei
2018-03-16process: Fix stack memory state.bunnei
2018-03-16MemoryState: Add additional memory states and improve naming.bunnei
2018-03-14core: Move process creation out of global state.bunnei
2018-03-01Merge pull request #216 from Subv/savedatabunnei
Implemented the SaveData archive and MountSaveData.
2018-03-01Kernel: Store the program id in the Process class instead of the CodeSet class.Subv
There may be many CodeSets per Process, so it's wasteful and overcomplicated to store the program id in each of them.
2018-02-27thread: Clear the process list on shutdown.Jules Blok
2018-02-26Merge pull request #207 from mailwl/duplicatesessionbunnei
IPC: add domain header to response if only it exists in request
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-20Add warning if Domain request has no domain message headermailwl
2018-02-20Fix: change check for domain order and existance of domain message headermailwl
2018-02-20IPC: add domain header to response if only it exists in requestmailwl
2018-02-19scheduler: Cleanup based on PR feedback.bunnei
2018-02-18kernel: Use Scheduler class for threading.bunnei
2018-02-18kernel: Add Scheduler, which encapsulates the scheduling loading from Thread ↵bunnei
module.
2018-02-18kernel: Remove unused address_arbiter code.bunnei
2018-02-18 Kernel/IPC: Add a small delay after each SyncRequest to prevent thread ↵Subv
starvation. Ported from citra PR #3091 The delay specified here is from a Nintendo 3DS, and should be measured in a Nintendo Switch. This change is enough to prevent Puyo Puyo Tetris's main thread starvation.
2018-02-16Service/hid: stub some functionsmailwl