ameerj
2d2522693e
Revert "Merge pull request #9718 from yuzu-emu/revert-9508-hle-ipc-buffer-span"
This reverts commit 25fc5c0e11 , reversing
changes made to af20e25081 .
3 years ago
liamwhite
b01698775b
Revert "hle_ipc: Use std::span to avoid heap allocations/copies when calling ReadBuffer"
3 years ago
Liam
7d1c3a3f59
kernel: add KDeviceAddressSpace
3 years ago
Liam
67a8740af6
kernel: add KCapabilities
3 years ago
Levi Behunin
d5fc56db4b
Move to Clang Format 15
Depends on https://github.com/yuzu-emu/build-environments/pull/69
clang-15 primary run
3 years ago
Liam
e9e1e7aa3a
kernel: unbreak min/max template deduction on Apple Clang
3 years ago
Liam
693cad8e9b
kernel: split SetAddressKey into user and kernel variants
3 years ago
Liam
5086380a63
kernel: fix incorrect locking order in suspension
3 years ago
Liam
31e54c4573
kernel: KPageTable: update
3 years ago
Liam
0953cdd271
timing: wait for completion on unregister
3 years ago
bunnei
a5693afa03
Revert "Revert "k_page_group: synchronize""
3 years ago
gidoly
10eaf31af3
Revert "k_page_group: synchronize"
3 years ago
ameerj
b0722591c9
hle_ipc: Use thread_local ReadBuffer
3 years ago
ameerj
a1490d77ac
hle_ipc: Rename ReadBufferSpan to ReadBuffer
3 years ago
ameerj
59c0f85407
hle_ipc: Rename ReadBuffer to ReadBufferCopy
Indicates explicitly that a copy is occurring
3 years ago
ameerj
7ffd624248
service: Use ReadBufferSpan where it is trivial to do so
3 years ago
Liam
28d9c30861
k_page_table: remove HACK_OpenPages/ClosePages
3 years ago
ameerj
9349f06963
hle_ipc: Add ReadBufferSpan function
Returns a std::span to the buffer address, rather than create a copy of the memory into a std::vector
3 years ago
Liam
3392fdac9b
k_page_group: synchronize
3 years ago
Liam
99eccf581e
kernel: workaround static shared memory initialization
3 years ago
Liam
c770f25ccb
kernel: remove TimeManager
3 years ago
Liam
67c0d714c5
kernel: add KHardwareTimer
3 years ago
ameerj
b1d633532f
hle_ipc: Refactor ReadBuffer to set buffer size upon initialization
Initializing the vector size during initialization is more efficient than a later call to resize()
3 years ago
ameerj
12c0f682e6
hle_ipc: Reserve vectors before populating
3 years ago
Narr the Reg
20cbf6f3db
kernel: svc: Fix duplicated InfoType enum
3 years ago
Narr the Reg
dca4f0687a
kernel: process: Implement GetFreeThreadCount
Used by Just Dance® 2023 Edition
3 years ago
Salvage
c586ac9be2
Remove the lock entirely as per PR discussion
Correctly unlock mutex before its destruction
As per https://en.cppreference.com/w/cpp/thread/mutex/~mutex destroying a locked mutex is undefined behavior and MSVC++ decides to throw in this case
Swap out unique for scoped lock and readd comment
3 years ago
Liam
9704acb982
general: improve handling of system startup failure
3 years ago
Lioncash
efa8711bf3
kernel/k_shared_memory: Ensure device_memory is always initialized
3 years ago
Lioncash
c3fd211b43
kernel/k_memory_block: Ensure members are always initialized
3 years ago
Lioncash
dcca650599
kernel/physical_core: Ensure is_interrupted is always initialized
3 years ago
Lioncash
dddc9bb8f1
kernel/thread: Ensure stack_top and argument are always initialized
3 years ago
Lioncash
4769d798f9
kernel/kernel: Ensure shutdown threads are always initialized
3 years ago
Liam
cec3a3cd5a
service_thread: fix uninitialized memory usage
3 years ago
Lioncash
59335f6796
hle_ipc: Add helper functions for getting number of buffer elements
4 years ago
Lioncash
c31f19b6d1
hle_ipc: Mark relevant member functions as [[nodiscard]]
Will allow the compiler to complain about cases where ignoring the
return value would be a bug.
4 years ago
Liam
9737615948
general: fix compile for Apple Clang
4 years ago
Lioncash
8d99aae45b
k_handle_table: Remove cast to void* in GetObjectForIpc
This was used to get around the KProcess class being incomplete. We can
just move this to the cpp file and eliminate the cast entirely, letting
the compiler do its work.
4 years ago
Kyle Kienapfel
6fa3faec65
Add break for default cases
Visual Studio has an option to search all files in a solution, so I
did a search in there for "default:" looking for any missing break
statements.
I've left out default statements that return something, and that throw
something, even if via ThrowInvalidType. UNREACHABLE leads towards throw
R_THROW macro leads towards a return
4 years ago
Liam
651f6598ac
kernel: implement FlushProcessDataCache
4 years ago
Liam
18123ff958
gdbstub: add ams monitor commands
4 years ago
Liam
b34d3d5882
service_thread: remove explicit KProcess
4 years ago
Liam
4eece4d35d
kernel/svc_types: refresh
4 years ago
Liam
cbaf642ffe
Initial ARM64 support
4 years ago
Liam
71c0e20f95
Ensure correctness of atomic store ordering
4 years ago
Liam
6a0d8b2aa1
service_thread: fix deletion
4 years ago
Liam
cf0f821565
core: hle: kernel: Address review comments.
4 years ago
Liam
e6fe40428c
service_thread: register service threads to the logical owner process
4 years ago
Liam
85527cc7c7
kernel: avoid racy behavior in global suspension
4 years ago
bunnei
05ae0cab0e
core: hle: kernel: k_page_table: Remove unnecessary casts.
4 years ago