Liam
2c56e94702
kernel: make current thread pointer thread local
4 years ago
Liam
208ed712f4
core/debugger: memory breakpoint support
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
084d7d6b01
common: Change semantics of UNREACHABLE to unconditionally crash
4 years ago
Liam
fb4b3c127f
core/debugger: Implement new GDB stub debugger
4 years ago
ameerj
ade596121b
core: Reduce unused includes
4 years ago
bunnei
0defac2f2a
core: hle: kernel: k_process: Remove handle table finalize, reset page table.
4 years ago
bunnei
813b2ef253
core: hle: kernel: k_process: Implement thread local storage accurately.
4 years ago
bunnei
a74fddc98f
core: hle: kernel: KProcess: Pass in KResourceLimit on process creation.
- This allows us to have a resource limit per process, rather than use the global system resource limit.
4 years ago
bunnei
59add00d4a
hle: kernel: KThread: Improve Increment/Decrement RunningThreadCount.
- Previously implementation was incorrect, and would occasionally underflow.
4 years ago
bunnei
d8b3f665db
core: hle: kernel: KProcess: Integrate with KWorkerTask and add unimplemented DoWorkerTaskImpl.
4 years ago
bunnei
49a0e4330e
hle: kernel: k_page_table: Update SetProcessMemoryPermission.
4 years ago
bunnei
6123b6ea45
hle: kernel: k_page_table: ReadAndWrite -> UserReadWrite.
4 years ago
bunnei
3a89723d97
core: hle: kernel: Implement thread pinning.
- 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 .
4 years ago
bunnei
091463a429
core: hle: kernel: Updated implementation of svcSetHeapSize.
- 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 .
4 years ago
bunnei
c73841500a
core: hle: Remove global HLE lock.
- This was added early on as a hack to protect against some concurrency issues.
- It's not clear that this serves any purpose anymore, and if it does, individual components should be fixed rather than using a global recursive mutex.
4 years ago
bunnei
316a2dd22a
hle: kernel: KProcess: Improvements for thread pinning.
4 years ago
bunnei
f13fce3953
core: hle: kernel: k_process: DisableDispatch on main thread.
4 years ago
Morph
281437c811
kernel: KPageTable: Rename SetCodeMemoryPermission to SetProcessMemoryPermission
4 years ago
Feng Chen
dd29285e35
Fix dangling kernel objects when exiting
4 years ago
Feng Chen
5fbfc4c19e
Fix KShareMemory object leak
4 years ago
bunnei
0c8594b225
Revert "kernel: Various improvements to scheduler"
4 years ago
bunnei
7569d6774d
core: hle: kernel: k_process: DisableDispatch on main thread.
4 years ago
bunnei
8d755147d8
hle: kernel: KProcess: Change process termination assert to a warning.
- Since we do not implement multiprocess right now, this should not be a crashing assert.
5 years ago
bunnei
b119363fc2
hle: kernel: k_process: Close the handle table on shutdown.
5 years ago
bunnei
6020723e77
hle: kernel: k_process: Close main thread reference after it is inserted into handle table.
5 years ago
Morph
ebd38d66db
kernel: Unconditionally set thread state when appropriate
5 years ago
Morph
12c1766997
general: Replace RESULT_SUCCESS with ResultSuccess
Transition to PascalCase for result names.
5 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
0b27c721c9
hle: kernel: Improve MapSharedMemory and implement UnmapSharedMemory.
5 years ago
bunnei
2a7eff57a8
hle: kernel: Rename Process to KProcess.
5 years ago
bunnei
b57c5a9b54
hle: kernel: Migrate KResourceLimit to KAutoObject.
5 years ago
bunnei
269d233a94
hle: kernel: svc_results: Update naming..
5 years ago
bunnei
89edbe8aa2
hle: kernel: Refactor several threads/events/sharedmemory to use slab heaps.
5 years ago
bunnei
7ccbdd4d8d
hle: kernel: Migrate KProcess to KAutoObject.
5 years ago
bunnei
da7e9553de
hle: kernel: Migrate more of KThread to KAutoObject.
5 years ago
bunnei
a4c6712a4b
common: Move settings to common from core.
- Removes a dependency on core and input_common from common.
5 years ago
ameerj
5e85bc3d23
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
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
93e20867b0
hle: kernel: Migrate PageHeap/PageTable to KPageHeap/KPageTable.
5 years ago
bunnei
b1e27890e8
hle: kernel: Migrate MemoryManager to KMemoryManager.
5 years ago
bunnei
65e0178cc0
hle: kernel: Migrate to KMemoryBlock, KMemoryBlockManager, and others.
5 years ago
ameerj
ec9b6641b1
kernel: More accurately reserve and release resources
5 years ago
ameerj
5fa6b15215
kernel: KScopedReservation implementation
This implements KScopedReservation, allowing resource limit reservations to be more HW accurate, and release upon failure without requiring too many conditionals.
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
bunnei
eba3c59a61
hle: kernel: svc: Cleanup KEvent/KReadableEvent/KWritableEvent SVCs.
5 years ago
Chloe Marcec
2c6e940493
Simplify limitableresource names
5 years ago
Chloe Marcec
3bf62c7a8a
Move to GetGlobalTimeNs, fix GetTotalPhysicalMemoryAvailable
5 years ago