Liam
a9623d5f55
general: fixes for gcc 13
3 years ago
Max Dunbar
e446f368d7
Fixes 'Continous' typo
3 years ago
Liam
9efd95cda5
kernel: fix unbounded stack usage in atomics
3 years ago
Morph
cdc846677c
telemetry: Add waitpkg instruction
3 years ago
Morph
981bc8aa1c
x64: Simplify RDTSC on non-MSVC compilers
Co-Authored-By: liamwhite <liamwhite@users.noreply.github.com>
3 years ago
Morph
e1bce50d8b
core_timing: Make use of MicroSleep for x64 CPUs
For CPUs that support tpause, this should result in significant CPU power savings over thread yield in this spin wait.
3 years ago
Morph
27c33ab73f
x64: Add MicroSleep
MicroSleep allows the processor to pause for a "short" amount of time (in the microsecond range). This is useful for spin-waiting that does not require nanosecond precision.
This uses the new TPAUSE instruction introduced on Intel's newest processors as part of the waitpkg instructions. For CPUs that do not support waitpkg instructions, this is equivalent to yield().
Co-Authored-By: liamwhite <liamwhite@users.noreply.github.com>
3 years ago
Morph
d2cfe25b07
x64: cpu_detect: Add detection of waitpkg instructions
waitpkg introduces 3 instructions, UMONITOR, UMWAIT and TPAUSE.
3 years ago
Narr the Reg
c2c7386dfd
service: hid: Silence warning on MergeSingleJoyAsDualJoy
3 years ago
Narr the Reg
2fbadc7e1f
qt: Fix log softlock
3 years ago
german77
8802646730
service: nfp: Add plain amiibo support
3 years ago
Liam
1476ffd865
tests: mark integer literals as unsigned
3 years ago
Liam
7017f04ee8
container_hash: use climits
3 years ago
Morph
49f6deecb8
video_core/macro: Make use of Common::HashValue
3 years ago
Morph
f09d192aac
tests: Implement tests for verifying HashValue
Values were randomly generated and the verification was done against boost 1.79.
3 years ago
Morph
9971cd1d55
common: Port boost's hash_value implementation
Ports a small subset of boost's hash_value implementation (<= 1.80.0).
3 years ago
Liam
50a59487eb
qt: implement RequestExit for applets
3 years ago
Liam
950db851ea
applets: implement RequestExit
3 years ago
Ross Schlaikjer
f38ae8e953
Pass GPU page table by reference
3 years ago
Liam
5a2dff87bf
vulkan: fix scheduler chunk reserve
3 years ago
Morph
abe2ad7aac
zstd: Use ZSTD_getFrameContentSize instead of ZSTD_getDecompressedSize
3 years ago
Liam
41d99aa89d
memory: rename global memory references to application memory
3 years ago
Liam
fb49ec19c1
kernel: use KTypedAddress for addresses
3 years ago
Morph
197d756560
bounded_threadsafe_queue: Refactor Pop
Introduces PopModes to bring waiting logic into Pop, similar to Push.
3 years ago
Morph
8c56481249
bounded_threadsafe_queue: Add producer cv to avoid busy waiting
3 years ago
Narr the Reg
6ff4bf9b1c
nfc: Initialize device when controller is connected
3 years ago
Morph
407dc917f1
bounded_threadsafe_queue: Deduplicate and add PushModes
Adds the PushModes Try and Wait to allow producers to specify how they want to push their data to the queue if the queue is full.
If the queue is full:
- Try will fail to push to the queue, returning false. Try only returns true if it successfully pushes to the queue. This may result in items not being pushed into the queue.
- Wait will wait until a slot is available to push to the queue, resulting in potential for deadlock if a consumer is not running.
3 years ago
Morph
15d573194c
bounded_threadsafe_queue: Add TryPush
3 years ago
Morph
f28ca5361f
logging: Make use of bounded queue
3 years ago
Morph
306840a580
bounded_threadsafe_queue: Use simplified impl of bounded queue
Provides a simplified SPSC, MPSC, and MPMC bounded queue implementation using mutexes.
3 years ago
Liam
b9b1318bea
vulkan: fix more excessive waiting in scheduler
3 years ago
Liam
43d909949e
kernel: fix LOG_TRACE in ipc
3 years ago
bunnei
00d401d639
common: string_util: Use std::string_view for UTF16ToUTF8/UTF8ToUTF16W.
3 years ago
bunnei
0eb3fa05e5
common: bounded_threadsafe_queue: Use polyfill_thread.
3 years ago
Narr the Reg
c95baf92ce
config: Fix controller config from resetting
3 years ago
Kelebek1
a7651168dd
Disable SRGB border color conversion for now, to fix shadows in Xenoblade.
3 years ago
Narr the Reg
075a3d1172
service: nfp: Replace crc function with boost equivalent
3 years ago
Narr the Reg
7187732454
service: nfp: Close app area and recreate crc
3 years ago
Narr the Reg
5031f5b8b0
service: nfp: Convert mii colors to v3
3 years ago
Liam
da83afdeaf
vulkan: disable extendedDynamicState3ColorBlendEquation on radv
3 years ago
Narr the Reg
026fe2e4f4
service: nfp: Actually write correct crc
3 years ago
Morph
4c678cfbc8
configure_audio: Fix output mode setting not saving
3 years ago
german77
96b8a3ecac
input_common: sdl: Only send last vibration command
3 years ago
Liam
c352381ce9
kernel: additional style fixes to KThread, KProcess
3 years ago
Liam
9775a73d1a
kernel: fix clang build
3 years ago
Liam
088c434d65
kernel: remove unnecessary finalize calls
3 years ago
Liam
9863db9db4
kernel: convert KProcess to new style
3 years ago
Liam
6bfb4c8f71
kernel: convert KThread to new style
3 years ago
Liam
ac6cbb7134
kernel: prefer std::addressof
3 years ago
Liam
641783df8f
kernel: convert KResourceLimit
3 years ago