Commit graph

2270 commits

Author SHA1 Message Date
Liam
767059b620 kernel: convert miscellaneous 2023-03-12 22:06:53 -04:00
Liam
7893136e74 kernel: conver KScopedLock, KScopedResourceReservation, KSessionRequest, KSharedMemory, KSpinLock 2023-03-12 22:06:53 -04:00
Liam
d41368663b kernel: convert KAbstractSchedulerLock 2023-03-12 22:06:53 -04:00
Liam
8c137e234f kernel: convert KMemoryLayout, KMemoryRegion*, KPageTableSlabHeap, KPriorityQueue 2023-03-12 22:06:53 -04:00
Liam
c72afbd1db kernel: move KMemoryLayout for NX board 2023-03-12 22:06:53 -04:00
Liam
842f5a4ced kernel: remove KLinkedList 2023-03-12 22:06:53 -04:00
Liam
01e79d9399 kernel: convert KConditionVariable, KLightConditionVariable, KLightLock 2023-03-12 22:06:53 -04:00
Liam
3c93638acf kernel: convert KPort, KSession 2023-03-12 22:06:53 -04:00
Liam
6b0b94dc27 kernel: convert GlobalSchedulerContext, KAddressArbiter, KScopedSchedulerLockAndSleep, KThreadQueue to new style 2023-03-12 22:06:53 -04:00
Liam
5be8a74b0c general: fix spelling mistakes 2023-03-12 11:33:01 -04:00
liamwhite
e70d580897 Merge pull request #9923 from liamwhite/kht
kernel: add timer pointer to KThreadQueue
2023-03-10 16:19:41 -05:00
liamwhite
fc5226669b Merge pull request #9916 from liamwhite/fpu
kernel: clone fpu status on CreateThread
2023-03-09 09:19:15 -05:00
liamwhite
aaeb3f2cb9 Merge pull request #9912 from liamwhite/err
hle: rename legacy errors to Results
2023-03-08 09:16:27 -05:00
liamwhite
dfc84b6a8b Merge pull request #9904 from liamwhite/ws
kernel: fix WaitSynchronization
2023-03-08 09:16:17 -05:00
Morph
ba31646b5f Merge pull request #9921 from liamwhite/override
general: fix type inconsistencies
2023-03-07 22:42:40 -05:00
Liam
46a6277709 kernel: add timer pointer to KThreadQueue 2023-03-07 20:51:29 -05:00
Liam
d55cc3b004 general: fix type inconsistencies 2023-03-07 20:05:19 -05:00
Liam
2e637e5519 kernel: avoid signed overflow UB on MSVC 2023-03-07 19:46:48 -05:00
Liam
1484a6536d kernel: clone fpu status on CreateThread 2023-03-07 19:18:06 -05:00
Liam
ea36f70e02 hle: rename legacy errors to Results 2023-03-06 20:58:42 -05:00
Jan Beich
98f8e82b60 kernel: add missing header for libc++
In file included from src/core/hle/kernel/k_light_lock.cpp:4:
In file included from src/./core/hle/kernel/k_light_lock.h:8:
src/./core/hle/kernel/k_scoped_lock.h:25:51: error: no member named 'addressof' in namespace 'std'
    explicit KScopedLock(T& l) : KScopedLock(std::addressof(l)) {}
                                             ~~~~~^
2023-03-06 11:49:25 +00:00
Liam
1d9ac8a979 kernel: fix WaitSynchronization 2023-03-05 10:29:10 -05:00
Morph
7f06f21046 Merge pull request #9884 from liamwhite/service-cleanup
service: miscellaneous cleanups
2023-03-03 22:51:17 -05:00
Liam
63414faea4 kernel: be more careful about kernel address keys 2023-03-01 10:42:45 -05:00
Liam
f4e795193b kernel: refactor priority inheritance to represent locks as C++ objects 2023-03-01 10:42:45 -05:00
Liam
a269b9b8e5 kernel: simplify AddressSpaceInfo, update values 2023-03-01 10:42:45 -05:00
Liam
7f1ef3060c kernel: barrier memory before condition variable write 2023-03-01 10:42:45 -05:00
Liam
dd0f9ff950 kernel: document previous location of interrupt disables in arbiter/condvar 2023-03-01 10:42:45 -05:00
Liam
1fd1d90c2d kernel: adjust pool allocations 2023-03-01 10:42:45 -05:00
Liam
7c2041afbc kernel: simplify KAbstractSchedulerLock::Lock 2023-03-01 10:42:45 -05:00
Liam
1cba79d852 kernel: add InfoType::IoRegionHint 2023-03-01 10:42:45 -05:00
Liam
d7e9461b71 service: move hle_ipc from kernel 2023-03-01 10:39:49 -05:00
liamwhite
7b8304614c Merge pull request #9832 from liamwhite/hle-mp
service: HLE multiprocess
2023-03-01 10:38:20 -05:00
Merry
38f528134f svc: Fix type consistency (exposed on macOS) 2023-02-21 21:39:17 +00:00
Liam
91c597e869 sm:: fix lingering session initialization issues 2023-02-21 12:19:25 -05:00
Liam
893a54f2bd sm:: support service registration deferral 2023-02-21 12:19:25 -05:00
Liam
1c3a93e7c4 service: refactor server architecture
Converts services to have their own processes
2023-02-21 12:19:25 -05:00
liamwhite
0af0887f01 Merge pull request #9771 from ameerj/host-thread-id
kernel: Refactor thread_local variable usage
2023-02-19 13:12:43 -05:00
Liam
edda4ad9ae kernel: add KObjectName 2023-02-17 09:16:05 -05:00
liamwhite
207fdfe57d Merge pull request #9796 from liamwhite/current
general: rename CurrentProcess to ApplicationProcess
2023-02-15 17:42:45 -05:00
arades79
60a68839ee remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistency
Signed-off-by: arades79 <scravers@protonmail.com>
2023-02-14 12:35:39 -05:00
arades79
3e078dbb07 apply clang-format
Signed-off-by: arades79 <scravers@protonmail.com>
2023-02-14 12:35:39 -05:00
arades79
adcef452e0 add static lifetime to constexpr values to force compile time evaluation where possible
Signed-off-by: arades79 <scravers@protonmail.com>
2023-02-14 12:33:11 -05:00
Liam
c68577384a general: rename CurrentProcess to ApplicationProcess 2023-02-13 19:03:12 -05:00
Liam
832e1e2ca4 kernel: use GetCurrentProcess 2023-02-13 11:05:14 -05:00
Colin Kinloch
d0ca9973a7 kernel/svc: Fix undefined info_id 2023-02-11 18:00:34 +00:00
liamwhite
3434c23625 Merge pull request #9773 from bunnei/fix-process-resource
core: kernel: k_process: Use application system resource.
2023-02-11 10:28:50 -05:00
bunnei
37faa1acc8 Merge pull request #9742 from liamwhite/svc-wrap-only
kernel/svc: switch to generated wrappers
2023-02-10 21:41:22 -08:00
bunnei
86a1aa0fcc core: kernel: k_process: Use application system resource. 2023-02-10 21:03:39 -08:00
ameerj
8467bf5224 kernel: Refactor thread_local variable usage
On MSVC at least, there seems to be a non-trivial overhead to calling GetHostThreadId().

This slightly reworks the host_thread_id variable to reduce some of the complexity around its usage, along with some small refactors around current_thread and dummy thread
2023-02-10 20:43:06 -05:00