ameerj
e17c343915
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
4b9df26091
k_page_group: synchronize
3 years ago
Liam
71ec5c9519
kernel: workaround static shared memory initialization
3 years ago
Liam
f1528eb549
time: add LockFreeAtomicType
3 years ago
Liam
8df44232e8
kernel: remove TimeManager
3 years ago
Liam
49d1cf6477
kernel: add KHardwareTimer
3 years ago
german77
8a90856b25
service: nfc: Silence ListDevices
3 years ago
ameerj
c57883f1bc
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
333fd1165a
hle_ipc: Reserve vectors before populating
3 years ago
Narr the Reg
dfe49436c8
kernel: svc: Fix duplicated InfoType enum
3 years ago
Narr the Reg
464b7a9ee2
kernel: process: Implement GetFreeThreadCount
Used by Just Dance® 2023 Edition
3 years ago
bunnei
572d81508b
Revert "hle: service: audio: Use default service thread."
3 years ago
Chloe Marcec
27a7d5a11a
Set: Allow setting device nickname
3 years ago
Salvage
a4369e6175
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
08d81c9726
general: improve handling of system startup failure
3 years ago
Lioncash
7ed6f9d6fd
kernel/k_shared_memory: Ensure device_memory is always initialized
3 years ago
Lioncash
0435142f58
kernel/k_memory_block: Ensure members are always initialized
3 years ago
Lioncash
4c5de31093
kernel/physical_core: Ensure is_interrupted is always initialized
3 years ago
Lioncash
6fea145402
kernel/thread: Ensure stack_top and argument are always initialized
3 years ago
Lioncash
8b8320be4a
kernel/kernel: Ensure shutdown threads are always initialized
3 years ago
Liam
4a65ee47d3
service_thread: fix uninitialized memory usage
3 years ago
Narr the Reg
dbfc2f7ee2
service: nfc: Implement mifare service
4 years ago
Morph
7ba644dc5d
service: nifm: Update stubs for Submit/GetRequestState/GetResult
3 years ago
Lioncash
ccec899cd8
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
93f287c79b
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
7d9d432ff4
buffer_queue_consumer: std::move std::shared_ptr in Connect()
Avoids an unnecessary reference count increment and decrement
3 years ago
Lioncash
f5def4b9c5
consumer_base: Pass shared_ptr by const reference
Avoids churning atomic reference count increments and decrements.
3 years ago
Lioncash
bde42f6767
consumer_base: Remove redundant virtual
override already serves this purpose
3 years ago
Lioncash
eb1bdc5ed4
syncpoint_manager: Mark IsSyncpointAllocated() as const
This doesn't modify class state at all.
3 years ago
Lioncash
8409b91f2e
syncpoint_manager: Reduce number of bounds checks
The only time we need to check bounds is on the first access.
3 years ago
Lioncash
e621ee9ec6
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
8c35c8c4a6
service: Make use of buffer element count helpers
4 years ago
Lioncash
ff19204dc6
hle_ipc: Add helper functions for getting number of buffer elements
4 years ago
Lioncash
ce329764a2
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
5a712bb51a
general: fix compile for Apple Clang
4 years ago
Lioncash
71d5db9354
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
Narr the Reg
5c134b62bd
service: nfc: Implement nfc user
4 years ago
german77
1cf625b6c6
service: hid: Only overclock npad controllers
4 years ago
Liam
14292b4067
nvnflinger: fix lost wakeup
4 years ago
Narr the Reg
da3b7ba4ed
core: Update result module
4 years ago
Kyle Kienapfel
d886438754
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
german77
9639d49ec6
general: Address review comments
4 years ago
german77
7fdca4ffab
service: am: Fix cabinet applet result
4 years ago
german77
23cda93390
service: am: Implement cabinet applet backend
4 years ago
german77
de02ec2357
service: nfc: fix tagprotocol and implement GetApplicationAreaId
4 years ago
Liam
e313e4f1ae
kernel: implement FlushProcessDataCache
4 years ago
bunnei
2df2dcd945
hle: service: audio: Use default service thread.
- This was arbitrarily added by me, and does not appear to be helpful.
4 years ago
Liam
9f12c3e22f
gdbstub: add ams monitor commands
4 years ago
Liam
47ce2e44d9
service_thread: remove explicit KProcess
4 years ago
Liam
affd5c32f9
kernel/svc_types: refresh
4 years ago