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
fbc375f0de
fsp_srv: Use ReadBufferSpan
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
80670a5b6c
time: add LockFreeAtomicType
3 years ago
Liam
c770f25ccb
kernel: remove TimeManager
3 years ago
Liam
67c0d714c5
kernel: add KHardwareTimer
3 years ago
german77
79f1f326c7
service: nfc: Silence ListDevices
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
bunnei
beba9c9b61
Revert "hle: service: audio: Use default service thread."
3 years ago
Chloe Marcec
c5f519e1e4
Set: Allow setting device nickname
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
Narr the Reg
a4725bcb73
service: nfc: Implement mifare service
3 years ago
Morph
00fdffec58
service: nifm: Update stubs for Submit/GetRequestState/GetResult
3 years ago
Lioncash
25dda06f49
producer_listener: Add virtual destructor to IProducerListener
Several member variables are shared_ptr's to this base class. Even
though producer listeners are still unimplemented, this ensures we
always have consistent deletion behavior once this ends up being used
polymorphically.
3 years ago
Lioncash
ae74f46e78
buffer_item_consumer: Pass fence by const-ref in ReleaseBuffer()
This isn't directly modified.
Also allows rvalues to be used with it.
3 years ago
Lioncash
3020f72b0c
buffer_queue_consumer: std::move std::shared_ptr in Connect()
Avoids an unnecessary reference count increment and decrement
3 years ago
Lioncash
c0c4f6dfa6
consumer_base: Pass shared_ptr by const reference
Avoids churning atomic reference count increments and decrements.
3 years ago
Lioncash
260a495a23
consumer_base: Remove redundant virtual
override already serves this purpose
3 years ago
Lioncash
7a329ae56c
syncpoint_manager: Mark IsSyncpointAllocated() as const
This doesn't modify class state at all.
3 years ago
Lioncash
d0883027d6
syncpoint_manager: Reduce number of bounds checks
The only time we need to check bounds is on the first access.
3 years ago
Lioncash
ad787b20ca
nvdrv: Simplify builder declarations
We can just use auto here. If one of these ever happens to not be
derived from nvdevice, then this will cause a compilation error.
We can also move the devices into the collection to get rid of an
unnecessary atomic reference count increment and decrement.
3 years ago
Lioncash
97f273e94e
service: Make use of buffer element count helpers
3 years ago
Lioncash
59335f6796
hle_ipc: Add helper functions for getting number of buffer elements
3 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.
3 years ago
Liam
9737615948
general: fix compile for Apple Clang
3 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.
3 years ago
Narr the Reg
327d225c3e
service: nfc: Implement nfc user
3 years ago
german77
aa075a0c08
service: hid: Only overclock npad controllers
3 years ago
Liam
cf202f3718
nvnflinger: fix lost wakeup
3 years ago
Narr the Reg
18fcc03b3c
core: Update result module
3 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
3 years ago
german77
75e6ec85e1
general: Address review comments
3 years ago
german77
a253d1557d
service: am: Fix cabinet applet result
3 years ago
german77
fb57cd26a1
service: am: Implement cabinet applet backend
3 years ago
german77
6c045c9beb
service: nfc: fix tagprotocol and implement GetApplicationAreaId
3 years ago
Liam
651f6598ac
kernel: implement FlushProcessDataCache
3 years ago
bunnei
0d6a8824d0
hle: service: audio: Use default service thread.
- This was arbitrarily added by me, and does not appear to be helpful.
3 years ago