Liam
c770f25ccb
kernel: remove TimeManager
3 years ago
Liam
9704acb982
general: improve handling of system startup failure
3 years ago
Lioncash
4769d798f9
kernel/kernel: Ensure shutdown threads are always initialized
3 years ago
Liam
4eece4d35d
kernel/svc_types: refresh
3 years ago
Liam
6a0d8b2aa1
service_thread: fix deletion
3 years ago
Liam
e6fe40428c
service_thread: register service threads to the logical owner process
3 years ago
Liam
85527cc7c7
kernel: avoid racy behavior in global suspension
3 years ago
bunnei
32d7faafa8
core: hle: kernel: Integrate system KSystemResource.
3 years ago
bunnei
1f21fa866d
core: hle: kernel: k_memory_layout: Refresh.
3 years ago
Liam
633411c20f
kernel: fix single core for service threads
3 years ago
Liam
2228383322
kernel: fix port tracking
3 years ago
Liam
983f2b7074
kernel: invert session request handling flow
3 years ago
Liam
2d90a927c9
core: barrier service thread shutdown
3 years ago
bunnei
1b787adbd0
core: hle: kernel: Fix InitializePreemption order.
3 years ago
bunnei
abcc009dff
core: hle: kernel: k_process: Improve management of page table & cleanup.
3 years ago
bunnei
8d4e026d05
core: hle: kernel: Remove junk.
3 years ago
bunnei
1baedfa12c
core: hle: kernel: Integration application memory block slab manager.
3 years ago
Liam
35d3e7db2a
common: remove "yuzu:" prefix from thread names
3 years ago
Liam
6523854dd6
kernel: unlayer CPU interrupt handling
4 years ago
Kelebek1
458da8a948
Project Andio
3 years ago
Liam
21945ae127
kernel: fix issues with single core mode
4 years ago
Liam
0624c880bd
kernel: use KScheduler from mesosphere
4 years ago
Kelebek1
b23c6b456c
PR
4 years ago
Kelebek1
240650f6a6
Rework CoreTiming
4 years ago
Liam
2c56e94702
kernel: make current thread pointer thread local
4 years ago
Liam
24d7aaf43c
kernel: wait for threads to stop on pause
4 years ago
Liam
744a208763
kernel: fix some uses of disable_count
4 years ago
Liam
888f499188
kernel: implement KProcess suspension
4 years ago
Liam
bd38aefc57
kernel: fix passthrough of local captures in lambda
4 years ago
Liam
af022294dd
CpuManager: simplify pausing
4 years ago
Morph
99ceb03a1c
general: Convert source file copyright comments over to SPDX
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.
4 years ago
german77
b2359f1527
hidbus: Implement hidbus and ringcon
5 years ago
bunnei
a7f73d606f
hle: kernel: Unify and integrate reference tracking for KServerPort/KServerSession.
- These are not managed elsewhere, and need to be tracked and closed on emulation shutdown.
4 years ago
Merry
1f275eb077
core/hle: Replace lock_guard with scoped_lock
4 years ago
lat9nq
5b5a1b7fa7
kernel: Fix current_process race
TSan reported a race at :258 and :803, so make current_process an atomic
pointer.
4 years ago
bunnei
864523327f
hle: kernel: Create a default thread for services that do not need their own host thread.
4 years ago
ameerj
ade596121b
core: Reduce unused includes
4 years ago
bunnei
5f3e77d93e
core: hle: kernel: Allocate dummy threads on host thread storage.
- Fixes a crash where on subsequent boots, long-lived host threads would have their dummy threads freed.
4 years ago
bunnei
82a2463062
core: hle: kernel: Downgrade dangling objects warning to debug.
- It is not impossible to leak kernel objects, so this is not really any issue anymore (albeit, still interesting).
4 years ago
bunnei
f7d1929816
core: hle: kernel: Make object list container global and ensure it is reset on each emulation session.
4 years ago
bunnei
51589c5e21
core: hle: kernel: Remove server session tracking.
- These are now allocated/managed by emulated memory, so we do not need to track and free them on shutdown.
4 years ago
bunnei
a25cd4bb4b
core: hle: kernel: Update init_slab_heap, use device memory, and add KThreadLocalPage and KPageBuffer.
- Refreshes our slab initialization code to latest known behavior.
- Moves all guest kernel slabs into emulated device memory.
- Adds KThreadLocalPage and KPageBuffer, which we will use for accurate TLS management.
4 years ago
bunnei
14d28a043d
hle: kernel: Re-create memory layout at initialization.
- As this can only be derived once.
4 years ago
bunnei
16e5954fcb
hle: kernel: Remove unused pool locals.
4 years ago
bunnei
f87f076162
hle: kernel: k_memory_manager: Rework for latest kernel behavior.
- Updates the KMemoryManager implementation against latest documentation.
- Reworks KMemoryLayout to be accessed throughout the kernel.
- Fixes an issue with pool sizes being incorrectly reported.
4 years ago
bunnei
ca5e843bf6
core: hle: kernel: Remove resource limit hack for PhysicalMemory.
- With prior changes, we now report the correct amount of physical memory available to the emulated process.
4 years ago
bunnei
f6815086a1
hle: kernel: Remove redundant tracking of dummy threads.
- These are already tracked by kernel's registered_objects member.
4 years ago
bunnei
b54cbc985e
hle: kernel: k_memory_manager: Clear pages on allocation & free.
- Heap pages should be zero'd.
- Also explicitly passed along heap allocation option.
4 years ago
bunnei
c905044e1b
core: hle: kernel: Instantiate a kernel instance of KWorkerTaskManager.
4 years ago
bunnei
cc112f971e
hle: kernel: Fix service_threads access to be thread safe V2.
- 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.
4 years ago