Commit Graph

6345 Commits (ceda2d280e8a3030c1e23083c5cea9158387fe4c)

Author SHA1 Message Date
ameerj f517f82416 nvdrv: Use std::span for inputs
Allows the use of HLERequestContext::ReadBufferSpan
2 years ago
ameerj e7032d9e64 hidbus: Use ReadBufferSpan 2 years ago
ameerj 32d01a39b0 nvflinger: Split Parcel class into InputParcel and OutputParcel
The usages of the Parcel class were already unique to either Read or Write operations.
Avoids needing a vector of the input payload for the InputParcel use-case, instead it can remain as a span.
2 years ago
ameerj 7ffd624248 service: Use ReadBufferSpan where it is trivial to do so 2 years ago
Liam 28d9c30861 k_page_table: remove HACK_OpenPages/ClosePages 2 years ago
ameerj fbc375f0de fsp_srv: Use ReadBufferSpan 2 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
2 years ago
Liam 3392fdac9b k_page_group: synchronize 2 years ago
liamwhite c6767704fb
Merge pull request #9496 from liamwhite/shm3
kernel: workaround static shared memory initialization
2 years ago
Liam 99eccf581e kernel: workaround static shared memory initialization 2 years ago
Liam 80670a5b6c time: add LockFreeAtomicType 2 years ago
Liam c770f25ccb kernel: remove TimeManager 2 years ago
Liam 67c0d714c5 kernel: add KHardwareTimer 2 years ago
german77 79f1f326c7 service: nfc: Silence ListDevices 2 years ago
liamwhite 4faea2bbf4
Merge pull request #9452 from ameerj/hle-read-buffer-resreve
hle_ipc: Refactor ReadBuffer to set buffer size upon initialization
2 years ago
liamwhite bbb202ceed
Merge pull request #6354 from ogniK5377/device-name
Set: Allow setting device nickname
2 years ago
liamwhite 789da737af
Merge pull request #9450 from ameerj/hle-ipc-vector-reserve
hle_ipc: Reserve vectors before populating
2 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()
2 years ago
ameerj 12c0f682e6 hle_ipc: Reserve vectors before populating 2 years ago
Narr the Reg 20cbf6f3db kernel: svc: Fix duplicated InfoType enum 2 years ago
Narr the Reg dca4f0687a kernel: process: Implement GetFreeThreadCount
Used by Just Dance® 2023 Edition
2 years ago
bunnei beba9c9b61
Revert "hle: service: audio: Use default service thread." 2 years ago
Chloe Marcec c5f519e1e4 Set: Allow setting device nickname 2 years ago
bunnei 339a37f8cb
Merge pull request #9398 from liamwhite/fail
general: improve handling of system startup failure
2 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
2 years ago
Liam 9704acb982 general: improve handling of system startup failure 2 years ago
liamwhite a86af1b776
Merge pull request #9386 from lioncash/init
kernel: Ensure relevant class members are always initialized on construction
2 years ago
liamwhite 04779b3d2a
Merge pull request #9369 from german77/mifare
service: nfc: Implement mifare service
2 years ago
Lioncash efa8711bf3 kernel/k_shared_memory: Ensure device_memory is always initialized 2 years ago
Lioncash c3fd211b43 kernel/k_memory_block: Ensure members are always initialized 2 years ago
Lioncash dcca650599 kernel/physical_core: Ensure is_interrupted is always initialized 2 years ago
Lioncash dddc9bb8f1 kernel/thread: Ensure stack_top and argument are always initialized 2 years ago
Lioncash 4769d798f9 kernel/kernel: Ensure shutdown threads are always initialized 2 years ago
Mai a52d0b82a6
Merge pull request #9381 from liamwhite/uninit
service_thread: fix uninitialized memory usage
2 years ago
Liam cec3a3cd5a service_thread: fix uninitialized memory usage 2 years ago
liamwhite 3b9db85646
Merge pull request #9232 from bunnei/audio-default-thread
hle: service: audio: Use default service thread.
2 years ago
liamwhite 22aff09b33
Merge pull request #9289 from liamwhite/fruit-company
general: fix compile for Apple Clang
2 years ago
liamwhite d8bd52c6f1
Merge pull request #9348 from Morph1984/when-the-network-is-down
service: nifm: Update stubs for Submit/GetRequestState/GetResult
2 years ago
Narr the Reg a4725bcb73 service: nfc: Implement mifare service 2 years ago
liamwhite 55a3cbfa0d
Merge pull request #9340 from lioncash/nvdrv
nvdrv: Simplify builder declarations
2 years ago
liamwhite 6b8ab9ed8f
Merge pull request #9346 from lioncash/vtable
producer_listener: Add virtual destructor to IProducerListener
2 years ago
liamwhite a7f1fa7bfc
Merge pull request #9345 from lioncash/fence
consumer_base: Pass std::shared_ptr by const reference
2 years ago
Morph 00fdffec58 service: nifm: Update stubs for Submit/GetRequestState/GetResult 2 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.
2 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.
2 years ago
Lioncash 3020f72b0c buffer_queue_consumer: std::move std::shared_ptr in Connect()
Avoids an unnecessary reference count increment and decrement
2 years ago
Lioncash c0c4f6dfa6 consumer_base: Pass shared_ptr by const reference
Avoids churning atomic reference count increments and decrements.
2 years ago
Lioncash 260a495a23 consumer_base: Remove redundant virtual
override already serves this purpose
2 years ago
Lioncash 7a329ae56c syncpoint_manager: Mark IsSyncpointAllocated() as const
This doesn't modify class state at all.
2 years ago
Lioncash d0883027d6 syncpoint_manager: Reduce number of bounds checks
The only time we need to check bounds is on the first access.
2 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.
2 years ago
Lioncash 97f273e94e service: Make use of buffer element count helpers 2 years ago
Lioncash 59335f6796 hle_ipc: Add helper functions for getting number of buffer elements 2 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.
2 years ago
Liam 9737615948 general: fix compile for Apple Clang 2 years ago
liamwhite 168c9ee341
Merge pull request #9299 from lioncash/cast
k_handle_table: Remove cast to void* in GetObjectForIpc
2 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.
2 years ago
Narr the Reg db7bcd51ae
Merge branch 'master' into nfc_impl 2 years ago
bunnei 57a05b1653
Merge pull request #9238 from german77/cabinet_applet
service: am: Implement cabinet applet
2 years ago
liamwhite bcbc25eeb3
Merge pull request #9191 from german77/touching_souls
core: hid: Implement true multitouch support
2 years ago
Narr the Reg 327d225c3e service: nfc: Implement nfc user 2 years ago
german77 aa075a0c08 service: hid: Only overclock npad controllers 2 years ago
bunnei 1fb33bd1e1
Merge pull request #9234 from liamwhite/data-cash-money
kernel: implement data cache management operations
2 years ago
bunnei 405d685101
Merge pull request #9244 from liamwhite/lost-wakeup
nvnflinger: fix lost wakeup
2 years ago
Morph e5a446a0df
Merge pull request #9229 from Docteh/achy_breaky_heart
Add break for default cases
2 years ago
bunnei 9e27624a19
Merge pull request #9243 from german77/result
core: Update result module
2 years ago
Liam cf202f3718 nvnflinger: fix lost wakeup 2 years ago
Narr the Reg 18fcc03b3c core: Update result module 2 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
2 years ago
german77 75e6ec85e1 general: Address review comments 2 years ago
german77 a253d1557d service: am: Fix cabinet applet result 2 years ago
german77 fb57cd26a1 service: am: Implement cabinet applet backend 2 years ago
german77 6c045c9beb service: nfc: fix tagprotocol and implement GetApplicationAreaId 2 years ago
liamwhite 040a01a5dd
Merge pull request #9225 from liamwhite/debugger-instance
Debugger improvements
2 years ago
Liam 651f6598ac kernel: implement FlushProcessDataCache 2 years ago
bunnei b51c1544b9
Merge pull request #9224 from liamwhite/services-arent-processes
service_thread: remove explicit KProcess
2 years ago
bunnei 0d6a8824d0 hle: service: audio: Use default service thread.
- This was arbitrarily added by me, and does not appear to be helpful.
2 years ago
bunnei d05b183f21
Merge pull request #9198 from liamwhite/arm64
Initial ARM64 support
2 years ago
Liam 18123ff958 gdbstub: add ams monitor commands 2 years ago
Liam b34d3d5882 service_thread: remove explicit KProcess 2 years ago
Liam 4eece4d35d kernel/svc_types: refresh 2 years ago
bunnei 770f23db34
Merge pull request #9182 from liamwhite/services-are-processes
kernel: assign KProcess to service threads
2 years ago
Liam cbaf642ffe Initial ARM64 support 2 years ago
Fernando S 3161b34ff6
Merge pull request #9215 from liamwhite/swordfight
Ensure correctness of atomic store ordering
2 years ago
Liam 71c0e20f95 Ensure correctness of atomic store ordering 2 years ago
Liam 6a0d8b2aa1 service_thread: fix deletion 2 years ago
liamwhite 4c198bbf06
Merge pull request #9173 from bunnei/kern-update-15
Kernel: Various updates for FW 15.0.x
2 years ago
Liam cf0f821565 core: hle: kernel: Address review comments. 2 years ago
Liam e6fe40428c service_thread: register service threads to the logical owner process 2 years ago
Liam 85527cc7c7 kernel: avoid racy behavior in global suspension 2 years ago
bunnei 37de88040c
Merge pull request #9135 from liamwhite/service-thread-event
kernel: invert session request handling flow
2 years ago
bunnei 05ae0cab0e core: hle: kernel: k_page_table: Remove unnecessary casts. 2 years ago
bunnei 119315af08 core: hle: kernel: k_page_table: Manually open/close pages for IPC methods. 2 years ago
bunnei 661fe06d9d core: hle: kernel: k_page_table: Implement IPC memory methods. 2 years ago
bunnei ba21ba0c5c core: hle: kernel: k_memory_manager: Refresh. 2 years ago
bunnei 32d7faafa8 core: hle: kernel: Integrate system KSystemResource. 2 years ago
bunnei b7b47f3099 core: hle: kernel: k_dynamic_page_manager: Refresh. 2 years ago
bunnei 6f941121e6 core: hle: kernel: Add KSystemResource. 2 years ago
bunnei 6636b81573 core: hle: kernel: k_handle_table: Refresh. 2 years ago
bunnei 1f21fa866d core: hle: kernel: k_memory_layout: Refresh. 2 years ago