Commit Graph

30 Commits (7c4b6aab2ef7cb2be77e32023323b1c5bd9e3d2f)

Author SHA1 Message Date
ameerj 7c4b6aab2e core: Remove unused includes 4 years ago
bunnei 0c8594b225
Revert "kernel: Various improvements to scheduler" 4 years ago
bunnei aef0ca6f0d core: hle: kernel: Disable dispatch count tracking on single core.
- This would have limited value, and would be a mess to handle properly.
4 years ago
bunnei 01af2f4162 core: hle: kernel: k_thread: Add KScopedDisableDispatch. 4 years ago
Morph 12c1766997 general: Replace RESULT_SUCCESS with ResultSuccess
Transition to PascalCase for result names.
4 years ago
Lioncash 16ff0161b3 k_thread: Move dereference after null check in Initialize()
Prevents a -Wnonnull warning on GCC.
4 years ago
Lioncash 2f62bae9e3 kernel: Eliminate variable shadowing
Now that the large kernel refactor is merged, we can eliminate the
remaining variable shadowing cases.
5 years ago
bunnei 4b03e6e776 hle: kernel: Migrate to KHandleTable. 5 years ago
bunnei 2a7eff57a8 hle: kernel: Rename Process to KProcess. 5 years ago
bunnei bf380b8584 hle: kernel: Remove deprecated Object class. 5 years ago
bunnei 84bb772003 hle: kernel: KThread: Remove incorrect resource release. 5 years ago
bunnei c2f6f2ba7a hle: kernel: KThread: Add missing resource hint release. 5 years ago
bunnei 086db71e94 hle: kernel: Migrate KSharedMemory to KAutoObject. 5 years ago
bunnei 479bd50b96 hle: kernel: Migrate KThread to KAutoObject. 5 years ago
bunnei 47af34003b hle: kernel: KThread: Rework dummy threads & fix memory leak.
- 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.
5 years ago
bunnei a5ab85ac37
Revert "core: Switch to unique_ptr for usage of Common::Fiber." 5 years ago
bunnei 51fb0a6f96 core: Switch to unique_ptr for usage of Common::Fiber.
- 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.
5 years ago
bunnei 1d162f28d1 hle: kernel: Migrate MemoryLayout to KMemoryLayout. 5 years ago
Chloe 37939482fb
kernel: Unify result codes (#5890)
* 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
5 years ago
Chloe Marcec 2c6e940493 Simplify limitableresource names 5 years ago
Chloe Marcec 3be1a565f8 kernel: Rewrite resource limit to be more accurate
Matches closer to hardware
5 years ago
bunnei e24c6dab93 hle: kernel: KThread: Release thread resource on thread exit. 5 years ago
bunnei 10738839ad yuzu: debugger: Ignore HLE threads. 5 years ago
bunnei 6e953f7f02 hle: kernel: Allocate a dummy KThread for each host thread, and use it for scheduling. 5 years ago
bunnei 0a1449e04b kernel: Fix build errors. 5 years ago
bunnei cdd14b03e5 hle: kernel: Recode implementation of KThread to be more accurate. 5 years ago
bunnei 4dbf3f4880 hle: kernel: KThread: Clean up thread priorities. 5 years ago
bunnei 1e55498110 hle: kernel: KThread: Reorganize thread priority defaults. 5 years ago
bunnei eea346ba8e hle: kernel: KThread: Remove thread types that do not exist. 5 years ago
bunnei c0d3aef28c core: hle: kernel: Rename Thread to KThread. 5 years ago