Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | core: Replace all instances of ResultCode with Result | german77 | 2022-06-27 | 1 | -26/+24 |
| | |||||
* | kernel: make current thread pointer thread local | Liam | 2022-06-23 | 1 | -4/+8 |
| | |||||
* | Merge pull request #8483 from liamwhite/fire-emblem-three-semaphores | bunnei | 2022-06-22 | 1 | -0/+13 |
|\ | | | | | kernel: wait for threads to stop on pause | ||||
| * | kernel: wait for threads to stop on pause | Liam | 2022-06-18 | 1 | -0/+13 |
| | | |||||
* | | kernel: fix some uses of disable_count | Liam | 2022-06-16 | 1 | -3/+1 |
|/ | |||||
* | kernel: implement KProcess suspension | Liam | 2022-06-14 | 1 | -4/+4 |
| | |||||
* | common: Change semantics of UNREACHABLE to unconditionally crash | Liam | 2022-06-14 | 1 | -1/+1 |
| | |||||
* | core/debugger: Support reading guest thread names | Liam | 2022-06-02 | 1 | -0/+4 |
| | |||||
* | general: Convert source file copyright comments over to SPDX | Morph | 2022-04-23 | 1 | -3/+2 |
| | | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later. | ||||
* | core: hle: kernel: k_thread: Rework dummy thread waiting. | bunnei | 2022-04-12 | 1 | -24/+15 |
| | |||||
* | k_thread: Fix data race | lat9nq | 2022-04-04 | 1 | -2/+2 |
| | | | | | TSan reports a data race between writing at cpp:1162 and reading at h:262. Make the thread_state atomic to prevent this. | ||||
* | core: Reduce unused includes | ameerj | 2022-03-19 | 1 | -3/+0 |
| | |||||
* | core: hle: kernel: k_process: Implement thread local storage accurately. | bunnei | 2022-03-15 | 1 | -2/+2 |
| | |||||
* | core: hle: kernel: k_thread: Ensure host Fiber is freed. | bunnei | 2022-03-15 | 1 | -0/+3 |
| | |||||
* | hle: kernel: KThread: Improve Increment/Decrement RunningThreadCount. | bunnei | 2022-01-23 | 1 | -8/+3 |
| | | | | - Previously implementation was incorrect, and would occasionally underflow. | ||||
* | hle: kernel: KThread: Ensure host (dummy) threads block on locking. | bunnei | 2022-01-22 | 1 | -0/+37 |
| | | | | | - But do not enter the priority queue, as otherwise they will be scheduled. - Allows dummy threads to use guest synchronization primitives. | ||||
* | hle: kernel: KThread: DummyThread can be waited, ensure wait_queue is not nullptr. | bunnei | 2022-01-21 | 1 | -6/+6 |
| | |||||
* | hle: kernel: KThread: Decrease DummyThread priority to ensure it is never scheduled. | bunnei | 2022-01-21 | 1 | -2/+3 |
| | |||||
* | hle: kernel: KThread: Ensure dummy threads never call EndWait. | bunnei | 2022-01-21 | 1 | -0/+5 |
| | | | | - These are only used by host threads for locking and will never have a wait_queue. | ||||
* | hle: kernel: KThread: Rename thread_type_for_debugging -> thread_type. | bunnei | 2022-01-21 | 1 | -1/+1 |
| | | | | - This will be used to ensure that we do not schedule dummy threads. | ||||
* | core: hle: kernel: KThread: Integrate with KWorkerTask and implement DoWorkerTaskImpl. | bunnei | 2022-01-15 | 1 | -1/+22 |
| | | | | | | - This is used to terminate a thread asynchronously after it has been exited. - This fixes a crash that can occur in Pokemon Sword/Shield because a thread is incorrectly closed on svcExitThread, then, the thread is destroyed on svcCloseHandle while it is still scheduled. - Instead, we now wait for the thread to no longer be scheduled on all cores before destroying it from KWorkerTaskManager, which is accurate to HOS behavior. | ||||
* | core: hle: kernel: KThread: Replace Suspend with UpdateState & various updates. | bunnei | 2022-01-15 | 1 | -31/+24 |
| | | | | - This makes our implementations of these more closely match HOS. | ||||
* | core: hle: kernel: Implement thread pinning. | bunnei | 2021-12-31 | 1 | -3/+41 |
| | | | | | - We largely had the mechanics in place for thread pinning, this change hooks these up. - Validated with tests https://github.com/Atmosphere-NX/Atmosphere/blob/master/tests/TestSvc/source/test_thread_pinning.cpp. | ||||
* | core: hle: kernel: KThread: X18 should be a cryptographically random number. | bunnei | 2021-12-23 | 1 | -0/+2 |
| | | | | | - This was added with firmware 11.0.0 (https://switchbrew.org/wiki/11.0.0). - X18 is OR'd by kernel with 1, to make sure it is odd. | ||||
* | hle: kernel: Remove unnecessary virtual specifier on CancelWait. | bunnei | 2021-12-07 | 1 | -2/+2 |
| | |||||
* | hle: kernel: k_thread: Skip reschedule on DisableDispatch with SC. | bunnei | 2021-12-07 | 1 | -0/+5 |
| | |||||
* | hle: kernel: k_thread: Rename sleeping_queue -> wait_queue. | bunnei | 2021-12-07 | 1 | -11/+11 |
| | |||||
* | hle: kernel: k_thread: Treat dummy threads as a special type. | bunnei | 2021-12-07 | 1 | -1/+3 |
| | |||||
* | hle: kernel: Add a flag for indicating that the kernel is currently shutting down. | bunnei | 2021-12-07 | 1 | -0/+5 |
| | |||||
* | hle: kernel: Cleanup to match coding style. | bunnei | 2021-12-07 | 1 | -5/+4 |
| | |||||
* | hle: kernel: KThread: Migrate to updated KThreadQueue (part 2). | bunnei | 2021-12-07 | 1 | -29/+19 |
| | |||||
* | hle: kernel: KThread: Migrate to updated KThreadQueue (part 1). | bunnei | 2021-12-07 | 1 | -57/+64 |
| | |||||
* | hle: kernel: KThread: Remove tracking of sync object from threads. | bunnei | 2021-12-07 | 1 | -5/+2 |
| | |||||
* | hle: kernel: Update KThreadQueue and migrate KSynchronizationObject. | bunnei | 2021-12-07 | 1 | -2/+40 |
| | |||||
* | core: hle: kernel: Disable dispatch count tracking on single core. | bunnei | 2021-12-07 | 1 | -1/+5 |
| | | | | - This would have limited value, and would be a mess to handle properly. | ||||
* | core: hle: kernel: k_thread: Add KScopedDisableDispatch. | bunnei | 2021-12-07 | 1 | -1/+16 |
| | |||||
* | core: Remove unused includes | ameerj | 2021-11-04 | 1 | -4/+0 |
| | |||||
* | Revert "kernel: Various improvements to scheduler" | bunnei | 2021-08-26 | 1 | -19/+2 |
| | |||||
* | core: hle: kernel: Disable dispatch count tracking on single core. | bunnei | 2021-08-14 | 1 | -1/+3 |
| | | | | - This would have limited value, and would be a mess to handle properly. | ||||
* | core: hle: kernel: k_thread: Add KScopedDisableDispatch. | bunnei | 2021-08-07 | 1 | -1/+16 |
| | |||||
* | general: Replace RESULT_SUCCESS with ResultSuccess | Morph | 2021-06-02 | 1 | -9/+9 |
| | | | | Transition to PascalCase for result names. | ||||
* | k_thread: Move dereference after null check in Initialize() | Lioncash | 2021-05-29 | 1 | -5/+5 |
| | | | | Prevents a -Wnonnull warning on GCC. | ||||
* | kernel: Eliminate variable shadowing | Lioncash | 2021-05-08 | 1 | -16/+16 |
| | | | | | Now that the large kernel refactor is merged, we can eliminate the remaining variable shadowing cases. | ||||
* | hle: kernel: Migrate to KHandleTable. | bunnei | 2021-05-06 | 1 | -1/+1 |
| | |||||
* | hle: kernel: Rename Process to KProcess. | bunnei | 2021-05-06 | 1 | -5/+5 |
| | |||||
* | hle: kernel: Remove deprecated Object class. | bunnei | 2021-05-06 | 1 | -1/+0 |
| | |||||
* | hle: kernel: KThread: Remove incorrect resource release. | bunnei | 2021-05-06 | 1 | -2/+1 |
| | |||||
* | hle: kernel: KThread: Add missing resource hint release. | bunnei | 2021-05-06 | 1 | -1/+1 |
| | |||||
* | hle: kernel: Migrate KSharedMemory to KAutoObject. | bunnei | 2021-05-06 | 1 | -0/+3 |
| | |||||
* | hle: kernel: Migrate KThread to KAutoObject. | bunnei | 2021-05-06 | 1 | -52/+48 |
| | |||||
* | hle: kernel: KThread: Rework dummy threads & fix memory leak. | bunnei | 2021-03-06 | 1 | -19/+31 |
| | | | | | - Dummy threads are created on thread local storage for all host threads. - Fixes a leak by removing creation of fibers, which are not applicable here. | ||||
* | Revert "core: Switch to unique_ptr for usage of Common::Fiber." | bunnei | 2021-03-06 | 1 | -1/+5 |
| | |||||
* | core: Switch to unique_ptr for usage of Common::Fiber. | bunnei | 2021-02-27 | 1 | -5/+1 |
| | | | | | - With using unique_ptr instead of shared_ptr, we have more explicit ownership of the context. - Fixes a memory leak due to circular reference of the shared pointer. | ||||
* | hle: kernel: Migrate MemoryLayout to KMemoryLayout. | bunnei | 2021-02-19 | 1 | -4/+4 |
| | |||||
* | kernel: Unify result codes (#5890) | Chloe | 2021-02-13 | 1 | -16/+14 |
| | | | | | | | | | * kernel: Unify result codes Drop the usage of ERR_NAME convention in kernel for ResultName. Removed seperation between svc_results.h & errors.h as we mainly include both most of the time anyways. * oops * rename errors to svc_results | ||||
* | Simplify limitableresource names | Chloe Marcec | 2021-02-03 | 1 | -1/+1 |
| | |||||
* | kernel: Rewrite resource limit to be more accurate | Chloe Marcec | 2021-01-30 | 1 | -2/+2 |
| | | | | Matches closer to hardware | ||||
* | hle: kernel: KThread: Release thread resource on thread exit. | bunnei | 2021-01-29 | 1 | -0/+1 |
| | |||||
* | yuzu: debugger: Ignore HLE threads. | bunnei | 2021-01-29 | 1 | -7/+8 |
| | |||||
* | hle: kernel: Allocate a dummy KThread for each host thread, and use it for scheduling. | bunnei | 2021-01-29 | 1 | -5/+1 |
| | |||||
* | kernel: Fix build errors. | bunnei | 2021-01-29 | 1 | -2/+7 |
| | |||||
* | hle: kernel: Recode implementation of KThread to be more accurate. | bunnei | 2021-01-29 | 1 | -197/+796 |
| | |||||
* | hle: kernel: KThread: Clean up thread priorities. | bunnei | 2021-01-29 | 1 | -9/+1 |
| | |||||
* | hle: kernel: KThread: Reorganize thread priority defaults. | bunnei | 2021-01-29 | 1 | -7/+6 |
| | |||||
* | hle: kernel: KThread: Remove thread types that do not exist. | bunnei | 2021-01-29 | 1 | -12/+9 |
| | |||||
* | core: hle: kernel: Rename Thread to KThread. | bunnei | 2021-01-29 | 1 | -0/+460 |