bunnei
25dcaf1eca
core: hle: kernel: k_process: Change Status -> State.
3 years ago
Liam
a9ace6856d
kernel: remove KWritableEvent
3 years ago
Liam
61a8696510
k_server_session: preliminary support for userspace server sessions
3 years ago
Liam
9b34afa588
Add implementation of svcCreateSession
3 years ago
Liam
0624c880bd
kernel: use KScheduler from mesosphere
4 years ago
german77
7b48e7b363
core: kernel: Replace instances of KPageLinkedList with KPageGroup
4 years ago
german77
a7d9be1384
core: Replace all instances of ResultCode with Result
4 years ago
comex
bf7e78795f
Re-add missing `case` and braces, and trim whitespace
4 years ago
comex
a14438d013
Update src/core/hle/kernel/svc.cpp
Co-authored-by: liamwhite <liamwhite@users.noreply.github.com>
4 years ago
comex
48737a4bb2
Support InfoType_MesosphereCurrentProcess
4 years ago
Liam
2c56e94702
kernel: make current thread pointer thread local
4 years ago
Nikita Strygin
cf7e4bda92
Implement ExitProcess svc
Currently this just stops all the emulation
This works under assumption that only application will try to use
ExitProcess, with services not touching it
If application exits - it quite makes sense to end the emulation
4 years ago
Liam
a7358ff1d4
kernel: notify debugger on break SVC
4 years ago
Liam
20eab9fed9
core: centralize profile scope for Dynarmic
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
Morph
8eabdc058b
kernel: svc: Replace -1ULL with 0xFFFFFFFFFFFFFFFF
Resolves the C4146 compiler warning on MSVC.
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
tech-ticks
3b91d213b1
hle: kernel: Invalidate entire icache in UnmapProcessMemory and UnmapCodeMemory ( fixes #8174 )
4 years ago
bunnei
1b3dba329a
hle: kernel: svc: MapProcessMemory: Fix usage of KPageLinkedList to use physical address space.
4 years ago
bunnei
3bc0c2a625
hle: kernel: svc: CreateCodeMemory: Remove log of 'out' host pointer.
- This does not seem terribly useful and is inconsistent with other usage.
4 years ago
bunnei
4e2401c11a
hle: kernel: svc: UnmapProcessCodeMemory: Fix inverted alignment check.
4 years ago
bunnei
57ebcbf2c4
core: hle: kernel: KEvent: Pass in owner KProcess on event creation.
- This is necessary to ensure resource limits are freed from the right process.
4 years ago
Sergi Granell
c3242abe95
kernel: svc: Add OutputDebugString32, CreateCodeMemory32, ControlCodeMemory32
Very straightforward, they are just wrappers to the 64-bit version of
the SVC.
4 years ago
Narr the Reg
d0c7c3f64f
svc: Set unique names for function tables
4 years ago
tech-ticks
16bf50e610
service: pm: Implement AtmosphereGetProcessInfo
4 years ago
Narr the Reg
1ed22b4613
svc: Add 32 bit SynchronizePreemptionState
Used by Espgaluda II
4 years ago
bunnei
b8b1b58f36
core: hle: kernel: Rename Un/Map to Un/MapMeory.
4 years ago
bunnei
49a0e4330e
hle: kernel: k_page_table: Update SetProcessMemoryPermission.
4 years ago
bunnei
081669c334
hle: kernel: k_page_table: Rename *ProcessCodeMemory -> *CodeMemory.
4 years ago
bunnei
af4696657c
core: hle: kernel: svc: Updates to SetMemoryAttribute and SetMemoryPermission.
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
4e7a6639d2
core: hle: kernel: Implement SetMemoryPermission.
- Not seen in any games yet, but validated with kernel tests.
4 years ago
bunnei
49e3c073a5
hle: kernel: svc: GetInfo: Fix error checking with IdleTickCount.
- Enforce tha the supplied handle is invalid, not valid.
- This gets Witcher 3 booting.
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
e3d156ab0e
hle: kernel: svc: Fix deadlock that can occur with single core.
4 years ago
bunnei
e942d97540
hle: kernel: KServerSession: Migrate to updated KThreadQueue.
4 years ago
bunnei
2f89456041
hle: kernel: KThread: Remove tracking of sync object from threads.
4 years ago
bunnei
669a2d2c67
core: hle: kernel: Reflect non-emulated threads as core 3.
4 years ago
itsmeft24
8aef8f39d8
kernel: svc: Implement Map/UnmapProcessMemory and Create/ControlCodeMemory
Used by Skyline modding framework
4 years ago
Morph
5cf93c1346
kernel: svc: Move all IsValid functions to an anonymous namespace
4 years ago
Morph
2726d705f8
kernel: svc: Implement SetProcessMemoryPermission
- Used by Skyline modding framework
4 years ago
Morph
64275dfbf4
general: Rename GetTitleID to GetProgramID
4 years ago
ameerj
7c4b6aab2e
core: Remove unused includes
4 years ago
Morph
b871388a31
svc: Correct WaitSynchronization num_handles param type
num_handles is a s32
4 years ago
Feng Chen
a8b0104923
Fix memory leak
4 years ago
Fernando Sahmkow
da6673e79a
SVC: Implement svcInfo:IdleTickCount
Used by the Witcher 3
4 years ago
Feng Chen
7cd43b139a
Fix KScopedAutoObject object leak when SendSyncRequest
4 years ago
bunnei
0c8594b225
Revert "kernel: Various improvements to scheduler"
4 years ago