itsmeft24
033c9dff92
kernel: svc: Implement Map/UnmapProcessMemory and Create/ControlCodeMemory
Used by Skyline modding framework
4 years ago
Morph
463793ccb5
kernel: svc: Move all IsValid functions to an anonymous namespace
4 years ago
Morph
64079bc2f2
kernel: svc: Implement SetProcessMemoryPermission
- Used by Skyline modding framework
4 years ago
Morph
10508e7af2
general: Rename GetTitleID to GetProgramID
4 years ago
ameerj
d27abf5546
core: Remove unused includes
4 years ago
Morph
c3c09ca222
svc: Correct WaitSynchronization num_handles param type
num_handles is a s32
4 years ago
Feng Chen
c13d1e0b0f
Fix memory leak
4 years ago
Fernando Sahmkow
69b1cad803
SVC: Implement svcInfo:IdleTickCount
Used by the Witcher 3
4 years ago
Feng Chen
974547f98f
Fix KScopedAutoObject object leak when SendSyncRequest
4 years ago
bunnei
5e600cba3a
Revert "kernel: Various improvements to scheduler"
4 years ago
Valeri
190e12a072
Fix check is thread current in GetThreadContext
Misplaced break made it only check for the first core.
4 years ago
bunnei
951143ba57
core: hle: kernel: Reflect non-emulated threads as core 3.
4 years ago
bunnei
b9bb5338c0
hle: kernel: svc: Remove part of ExitProcess.
- ExitProcess is not actually implemented either way, and this needs more work before we implement.
4 years ago
bunnei
43f2f83c30
kernel: svc: ConnectToNamedPort: Close extra reference to port.
5 years ago
bunnei
d06f7d9f6c
kernel: svc: Add missing error check to CancelSynchronization.
- Avoids a potential crash if the handle is invalid, and also makes this code accurate to real kernel behavior.
5 years ago
Morph
7ebc38a6d1
general: Replace RESULT_SUCCESS with ResultSuccess
Transition to PascalCase for result names.
5 years ago
Lioncash
eeae5217ba
core: Make variable shadowing a compile-time error
Now that we have most of core free of shadowing, we can enable the
warning as an error to catch anything that may be remaining and also
eliminate this class of logic bug entirely.
5 years ago
bunnei
6e284d951b
hle: kernel: svc: Update ConnectToNamedPort to use new CreateNamedServicePort interface.
5 years ago
bunnei
4ebb8f0dfe
kernel: svc: Remove unused RetrieveResourceLimitValue function.
5 years ago
bunnei
4c54ffc1f6
hle: kernel: svc: ConnectToNamedPort: Use KHandleTable::Reserve.
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
d6844cf75f
hle: kernel: Migrate KPort, KClientPort, and KServerPort to KAutoObject.
5 years ago
bunnei
9f1abd8188
hle: kernel: Migrate KClientPort to KAutoObject.
5 years ago
bunnei
944eb14d69
hle: kernel: HandleTable: Remove deprecated APIs.
5 years ago
bunnei
22a67a4627
hle: kernel: Migrate KResourceLimit to KAutoObject.
5 years ago
bunnei
d4b1153e1b
hle: kernel: svc: Migrate WaitSynchronization.
5 years ago
bunnei
3a07aeba02
hle: kernel: svc: Use new handle table API for Process.
5 years ago
bunnei
bf274faa22
hle: kernel: Migrate KTransferMemory to KAutoObject.
5 years ago
bunnei
83b96b7264
hle: kernel: Migrate KSession, KClientSession, and KServerSession to KAutoObject.
5 years ago
bunnei
7d0ee9a1b1
hle: kernel: svc: Migrate GetThreadContext, GetThreadCoreMask.
5 years ago
bunnei
98ea7b9b50
hle: kernel: svc: Migrate GetProcessId, CancelSynchronization, SetThreadActivity.
5 years ago
bunnei
b6c0ce8781
hle: kernel: svc_results: Update naming..
5 years ago
bunnei
617803fb5d
hle: kernel: Migrate KReadableEvent and KWritableEvent to KAutoObject.
5 years ago
bunnei
715978756e
hle: kernel: Refactor several threads/events/sharedmemory to use slab heaps.
5 years ago
bunnei
949231d69c
hle: kernel: Migrate KEvent to KAutoObject.
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
8b224f05c9
hle: kernel: Refactor IPC interfaces to not use std::shared_ptr.
5 years ago
bunnei
a4a27a1ef2
hle: kernel: Migrate more of KThread to KAutoObject.
5 years ago
bunnei
746f99e919
hle: kernel: svc: Migrate GetThreadPriority, StartThread, and ExitThread.
5 years ago
bunnei
ac779a83fc
hle: kernel: svc: Migrate CreateThread.
5 years ago
ameerj
931ef0f8a3
k_resource_limit: Minor cleanup of member variables/headers
5 years ago
Lioncash
840fadc3e4
svc: Expand SVC tables
12.x expanded the range of SVC entries from 0x7F to 0xBF (with all new
entries being unused), so we can expand it to also match.
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
bunnei
845a217d5e
Revert "core: Switch to unique_ptr for usage of Common::Fiber."
5 years ago
bunnei
3322f10f84
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
5dbcaa2970
hle: kernel: Migrate PageHeap/PageTable to KPageHeap/KPageTable.
5 years ago
bunnei
a4c5e6d964
hle: kernel: Migrate to KMemoryBlock, KMemoryBlockManager, and others.
5 years ago