aboutsummaryrefslogtreecommitdiff
path: root/src/core
AgeCommit message (Collapse)Author
2022-01-17Merge pull request #7732 from v1993/patch-7bunnei
kernel: remove no-op code
2022-01-17Merge pull request #7728 from v1993/patch-4Mai M
hid: fix std::transform call
2022-01-17hle: remove no-op codeValeri
Found by static analysis with PVS-Studio. Nobody seems to really know what was it doing there.
2022-01-17hid: fix std::transform callValeri
Found by static analysis with PVS-Studio.
2022-01-17Correct assignment source for rotationsValeri
Found by static analysis with PVS-Studio
2022-01-14Merge pull request #7711 from bunnei/fix-service-thread-race-v2bunnei
hle: kernel: Fix service_threads access to be thread safe V2.
2022-01-14hle: kernel: k_memory_manager: Clear pages on allocation & free.bunnei
- Heap pages should be zero'd. - Also explicitly passed along heap allocation option.
2022-01-14Merge pull request #7707 from german77/slow-updatebunnei
service/hid: Decrease motion update rate
2022-01-14core: hle: kernel: KThread: Integrate with KWorkerTask and implement ↵bunnei
DoWorkerTaskImpl. - 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.
2022-01-14core: hle: kernel: KProcess: Integrate with KWorkerTask and add ↵bunnei
unimplemented DoWorkerTaskImpl.
2022-01-14core: hle: kernel: KThread: Replace Suspend with UpdateState & various updates.bunnei
- This makes our implementations of these more closely match HOS.
2022-01-14core: hle: kernel: Instantiate a kernel instance of KWorkerTaskManager.bunnei
2022-01-14core: hle: kernel: Add KWorkerTask and KWorkerTaskManager.bunnei
- These primitives are used to dispatch asynchronous kernel tasks from KThread and KProcess.
2022-01-14hle: kernel: Fix service_threads access to be thread safe V2.bunnei
- PR #7699 attempted to fix CreateServiceThread and ReleaseServiceThread to be thread safe, but inadvertently introduced a possible dead-lock. - With this PR, we use a worker thread to manage the service thread list, allowing it only to be accessed by a single thread, and guaranteeing threads will not destroy themselves. - Fixes a rare crash in Pokemon Sword/Shield, I've now run this game for ~12 hours non-stop and am quite confident this is a good solution for this issue.
2022-01-14core/hid: Increment shake forceNarr the Reg
With the current settings 2p mode in pokemon let's go wasn't showing up. By making the shake more violent we can make it appear without any effort using the keyboard
2022-01-14Merge pull request #7699 from bunnei/fix-service-thread-raceMai M
hle: kernel: Fix service_threads access to be thread safe.
2022-01-14Merge pull request #7698 from bunnei/mem-code-memory-updatesMai M
Kernel Memory Updates (Part 2): SetProcessMemoryPermission, update permissions, and other minor changes.
2022-01-13hle: kernel: Fix service_threads access to be thread safe.bunnei
- CreateServiceThread and ReleaseServiceThread can be accessed by different threads, uses a lock to make this thread safe. - Fixes a rare crash in Pokemon Sword/Shield that can occur when a new service thread is being created while an old one is being destroyed.
2022-01-13Merge pull request #7700 from german77/no-gyrobunnei
core/hid: Reduce gyro threshold even more
2022-01-12service/hid: Decrease motion update rateNarr the Reg
Motion stops working in Mario Tennis in swing mode if the update rate is too fast even when HW it updates at the same speed. 10ms it's the minimum period that the game needs to start working again.
2022-01-11core/hid: Reduce gyro threshold even moreNarr the Reg
2022-01-11hle: kernel: k_page_table: Update SetProcessMemoryPermission.bunnei
2022-01-11hle: service: ldr: UnmapCodeMemory BSS only when set.bunnei
2022-01-11hle: kernel: k_page_table: ReadAndWrite -> UserReadWrite.bunnei
2022-01-11hle: kernel: k_page_table: Rename *ProcessCodeMemory -> *CodeMemory.bunnei
2022-01-11Merge pull request #7684 from bunnei/set-mem-perm-attrbunnei
Kernel Memory Updates (Part 1): SetMemoryAttribute, and other minor changes.
2022-01-11Merge pull request #7633 from german77/hotkeysbunnei
yuzu: Add controller hotkeys
2022-01-08Merge pull request #7682 from german77/udp_fixbunnei
input_common: Fix UDP controller mappings
2022-01-08core: hle: kernel: svc: Updates to SetMemoryAttribute and SetMemoryPermission.bunnei
2022-01-08core: hle: kernel: k_page_table: Update CheckMemoryState.bunnei
2022-01-07yuzu: Use pad parameter to choose the correct controllergerman77
2022-01-06yuzu: Add controller hotkeysgerman77
2022-01-06core/hid: Add home and screenshot button supportgerman77
2022-01-06core/hid: Set minimum gyro thresholdgerman77
2022-01-04Merge pull request #7636 from vonchenplus/buffer_queue_querybunnei
core:hle:service:nvflinger Implement few type in bufferqueue query method
2022-01-03gpu: Add shut down method to synchronize threads before destructionameerj
2022-01-03Revert "Merge pull request #7668 from ameerj/fence-stop-token"ameerj
This reverts commit e7733544779f2706d108682dd027d44e7fa5ff4b, reversing changes made to abbbdc2bc027ed7af236625ae8427a46df63f7e7.
2022-01-03Merge pull request #7668 from ameerj/fence-stop-tokenbunnei
gpu: Use std::stop_token in WaitFence for VSync thread
2022-01-03Merge pull request #7664 from german77/fallbackbunnei
core/hid: Add fallback to fullkey controllers
2022-01-03gpu: Use std::stop_token in WaitFence for VSync threadameerj
Fixes a hang that may occur when stopping emulation and the VSync thread is blocked on the syncpoint condition variable.
2022-01-03Merge pull request #7648 from bunnei/thread-pinningFernando S
core: hle: kernel: Implement thread pinning.
2022-01-01core/hid: Add fallback to fullkey controllersgerman77
2021-12-30Merge pull request #7647 from german77/toadbunnei
core/hid: Fix controller type validation
2021-12-30core: hle: kernel: Implement thread pinning.bunnei
- 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.
2021-12-29core/hid: Fix controller type validationgerman77
2021-12-28Remove invalid assertion statementFeng Chen
2021-12-28Implement few type in bufferqueue query methodFeng Chen
2021-12-28core: hle: kernel: Updated implementation of svcSetHeapSize.bunnei
- Updates our svcSetHeapSize with latest HOS, furthermore allowing heap size to properly be extended/shrunk. - Validated with tests https://github.com/Atmosphere-NX/Atmosphere/blob/master/tests/TestSvc/source/test_set_heap_size.cpp.
2021-12-27Merge pull request #7621 from bunnei/set-mem-permbunnei
core: hle: kernel: Implement SetMemoryPermission.
2021-12-23core: hle: kernel: Implement SetMemoryPermission.bunnei
- Not seen in any games yet, but validated with kernel tests.