bunnei
347e4d6ab8
core: hle: kernel: Use CurrentPhysicalCoreIndex as appropriate.
4 years ago
bunnei
43fcb97ef3
core: hle: kernel: Ensure idle threads are closed before destroying scheduler.
4 years ago
bunnei
951143ba57
core: hle: kernel: Reflect non-emulated threads as core 3.
4 years ago
bunnei
beeed68944
hle: kernel: Track and release server sessions, and protect methods with locks.
5 years ago
bunnei
81d111fd1b
hle: kernel: Ensure current running process is closed.
5 years ago
bunnei
88350871df
hle: kernel: Ensure global handle table is finalized before closing.
5 years ago
bunnei
2c96cc5343
hle: kernel: Ensure global handle table is initialized.
5 years ago
bunnei
a4b3202b65
hle: kernel: Provide methods for tracking dangling kernel objects.
5 years ago
Wunkolo
722f9c3cb5
common: Replace common_sizes into user-literals
Removes common_sizes.h in favor of having `_KiB`, `_MiB`, `_GiB`, etc
user-literals within literals.h.
To keep the global namespace clean, users will have to use:
```
using namespace Common::Literals;
```
to access these literals.
5 years ago
bunnei
a3de201dcf
hle: kernel: Remove service thread manager and use weak_ptr.
- We no longer need to queue up service threads to be destroyed.
- Fixes a race condition where a thread could be destroyed too early, which caused a crash in Pokemon Sword/Shield.
5 years ago
Markus Wick
9f92beed0a
Fix two GCC 11 warnings: Unneeded copies.
std::move created an unneeded copy.
iterating without reference also created copies.
5 years ago
bunnei
639baf88f7
hle: kernel: KSlabHeap: Allow host or guest allocations.
- Use host allocations for kernel memory, as this is not properly emulated yet.
- Use guest allocations for TLS, as this needs to be backed by DeviceMemory.
5 years ago
bunnei
777e7c52ba
hle: kernel: Implement named service ports using service interface factory.
- This allows us to create a new interface each time ConnectToNamedPort is called, removing the assumption that these are static.
5 years ago
Lioncash
e019da0487
kernel: Eliminate variable shadowing
Now that the large kernel refactor is merged, we can eliminate the
remaining variable shadowing cases.
5 years ago
bunnei
14cb6883db
hle: kernel: Move slab resource counts to Kernel.
5 years ago
bunnei
89966df98c
hle: kernel: Fix un/sign mismatch errors with NUM_CPU_CORES.
5 years ago
bunnei
47224d3864
hle: kernel: Migrate to KHandleTable.
5 years ago
bunnei
95fbbf3041
hle: kernel: Improve MapSharedMemory and implement UnmapSharedMemory.
5 years ago
bunnei
ad048de3d6
hle: kernel: Rename Process to KProcess.
5 years ago
bunnei
90e23002fa
hle: kernel: Do not shutdown twice on emulator close.
5 years ago
bunnei
44c8d9206c
hle: kernel: Cleanup shutdown of persistent kernel objects.
5 years ago
bunnei
9f1abd8188
hle: kernel: Migrate KClientPort to KAutoObject.
5 years ago
bunnei
22a67a4627
hle: kernel: Migrate KResourceLimit to KAutoObject.
5 years ago
bunnei
a317bad4ce
hle: kernel: Move slab heaps to their own container.
5 years ago
bunnei
715978756e
hle: kernel: Refactor several threads/events/sharedmemory to use slab heaps.
5 years ago
bunnei
9f82c577d0
hle: kernel: Ensure all kernel objects with KAutoObject are properly created.
5 years ago
bunnei
986245ba10
hle: kernel: Use unique_ptr for suspend and dummy threads.
5 years ago
bunnei
11f9080d2e
hle: kernel: Migrate KSharedMemory to KAutoObject.
5 years ago
bunnei
7a6bfbde24
hle: kernel: Migrate KProcess to KAutoObject.
5 years ago
bunnei
a4a27a1ef2
hle: kernel: Migrate more of KThread to KAutoObject.
5 years ago
bunnei
07939c59a6
hle: kernel: Refactor out various KThread std::shared_ptr usage.
5 years ago
ameerj
931ef0f8a3
k_resource_limit: Minor cleanup of member variables/headers
5 years ago
ameerj
575eb4f156
kernel/process: Replace process resource limit instance with the kernel's resource limit
This commit addresses the inaccurate behavior of kernel processes creating their own resource limit, rather than utilizing the kernel's system-wide resource limit instance.
5 years ago
ameerj
c7a0ebbba7
kernel: Increase event and session counts
12.x increased the number of available sessions and event resource counts
5 years ago
bunnei
e8dd3eca47
hle: kernel: Initialize preemption task after schedulers.
- Fixes a startup crash that occurs if CoreTiming tries to preempt before kernel initialization completes.
5 years ago
bunnei
50cdb650af
hle: kernel: Breakup InitializeMemoryLayout.
5 years ago
bunnei
9fe89ad30d
common: common_sizes: Move sizes to the Common namespace.
5 years ago
bunnei
dc2507fce2
hle: kernel: Remove unused variable.
5 years ago
bunnei
79ca47ab3a
hle: kernel: k_memory_layout: Derive memory regions based on board layout.
5 years ago
bunnei
3000ebbf08
hle: kernel: Move KMemoryRegion to its own module and update.
5 years ago
bunnei
75519d107f
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
ameerj
0d9fb9ca27
kernel: Fix resource release exception on exit
After rewriting the resource limit, objects releasing reserved resources require a live kernel instance.
This commit fixes exceptions that occur due to the kernel being destroyed before some objects released their resources, allowing for a graceful exit.
5 years ago
bunnei
c21aa2479a
hle: kernel: Migrate MemoryManager to KMemoryManager.
5 years ago
bunnei
a4c5e6d964
hle: kernel: Migrate to KMemoryBlock, KMemoryBlockManager, and others.
5 years ago
bunnei
5702047b65
hle: kernel: Migrate SlabHeap to KSlabHeap.
5 years ago
bunnei
8c9e87ab66
hle: kernel: Migrate MemoryLayout to KMemoryLayout.
5 years ago
bunnei
f8d8755776
hle: kernel: Rename SharedMemory to KSharedMemory.
5 years ago
ameerj
faae6b5595
kernel: More accurately reserve and release resources
5 years ago
Chloe
e62886ead0
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
6ff08eb44f
Simplify limitableresource names
5 years ago