bunnei
170e19d4ea
nvflinger: Fix for BufferQueue event handling.
8 years ago
David Marcec
a7d6c0d6ea
No need to use ASSERT_MSG with an empty message
8 years ago
James Rowe
0d46f0df12
Update clang format
8 years ago
James Rowe
638956aa81
Rename logging macro back to LOG_*
8 years ago
mailwl
a27befe456
IPC: skip empty buffer write
prevent yuzu crash, if games, like Axiom Verge, trying to read 0 bytes from file
8 years ago
Michael Scire
067ac434ba
Kernel/Arbiters: Fix casts, cleanup comments/magic numbers
8 years ago
Michael Scire
5f8aa02584
Add additional missing format.
8 years ago
Michael Scire
08d454e30d
Run clang-format on PR.
8 years ago
Michael Scire
dc70a87af1
Kernel/Arbiters: HLE is atomic, adjust code to reflect that.
8 years ago
Michael Scire
8f8fe62a19
Kernel/Arbiters: Initialize arb_wait_address in thread struct.
8 years ago
Michael Scire
62bd1299ea
Kernel/Arbiters: Clear WaitAddress in SignalToAddress
8 years ago
Michael Scire
4f81bc4e1b
Kernel/Arbiters: Mostly implement SignalToAddress
8 years ago
Michael Scire
9d71ce88ce
Kernel/Arbiters: Implement WaitForAddress
8 years ago
Michael Scire
7e191dccc1
Kernel/Arbiters: Add stubs for 4.x SignalToAddress/WaitForAddres SVCs.
8 years ago
Subv
a3d82ef5d9
Build: Fixed some MSVC warnings in various parts of the code.
8 years ago
Jules Blok
bf4e2b2f0b
svc: Add a stub for UserExceptionContextAddr.
8 years ago
Subv
9cd87a6352
Kernel/Threads: A thread waking up by timeout from a WaitProcessWideKey may already have an assigned lock owner.
This situation may happen like so:
Thread 1 with low priority calls WaitProcessWideKey with timeout.
Thread 2 with high priority calls WaitProcessWideKey without timeout.
Thread 3 calls SignalProcessWideKey
- Thread 2 acquires the lock and awakens.
- Thread 1 can't acquire the lock and is put to sleep with the lock owner being Thread 2.
Thread 1's timeout expires, with the lock owner still being set to Thread 2.
8 years ago
Subv
c02d7c8ce7
Kernel/Thread: Corrected a typo that caused the affinity mask to never be changed.
8 years ago
Subv
3957b0c34e
Kernel/SVC: Support special core values -2 and -3 in svcSetThreadCoreMask.
Also added some proper error handling.
8 years ago
Subv
d1f9c750a6
Kernel/Thread: Corrected a typo in an assert about the processor id.
8 years ago
greggameplayer
b16e5c6a81
Add & correct miscellaneous things ( #470 )
* add some InfoType
* correct OpenApplicationProxy cmd number
* add IDisplayController functions
* fix clang-format
* add more system languages
8 years ago
Subv
fd500d3da6
Mutex: Do not assert when the mutex waiting threads list isn't empty on mutex release.
A thread may own multiple mutexes at the same time, and only release one of them while other threads are waiting for the other mutexes.
8 years ago
Subv
2a35a36251
Kernel/SVC: Signal the highest priority threads first in svcSignalProcessWideKey.
8 years ago
Subv
c74f2555b6
Kernel/Threads: Reschedule the proper core when operating on that core's threads.
8 years ago
Subv
fab3dd98fe
SVC: Removed unused WaitSynchronization1 function
8 years ago
David Marcec
fd86cdb2e2
Added RequestWithContext & ControlWithContext
8 years ago
bunnei
46ec9a9bc9
thread: Rename mask to affinity_masks.
8 years ago
bunnei
fbd7afefaa
thread: Support core change on ResumeFromWait and improve ChangeCore.
8 years ago
bunnei
91af2f94e8
scheduler: Protect scheduling functions with a global mutex.
8 years ago
bunnei
4822765fef
thread: Initialize ideal_core and mask members.
8 years ago
bunnei
8aa5d25f82
threading: Reschedule only on cores that are necessary.
8 years ago
bunnei
d6e3cd9a17
svc: Implement GetThreadCoreMask and SetThreadCoreMask.
8 years ago
bunnei
6ea8b3ef60
thread: Implement ChangeCore function.
8 years ago
bunnei
1c36f2a798
svc: SignalProcessWideKey should apply to all cores.
8 years ago
bunnei
6a890023e9
svc: Implement GetCurrentProcessorNumber.
8 years ago
bunnei
a434fdcb10
core: Implement multicore support.
8 years ago
Lioncash
7c9644646f
general: Make formatting of logged hex values more straightforward
This makes the formatting expectations more obvious (e.g. any zero padding specified
is padding that's entirely dedicated to the value being printed, not any pretty-printing
that also gets tacked on).
8 years ago
bunnei
fadab1d5f3
ipc: Add support for PopIpcInterface() method.
- This can be used for domain objects as inputs to service functions.
8 years ago
David
ff2f0d980a
GetSharedFontInOrderOfPriority ( #381 )
* GetSharedFontInOrderOfPriority
* Update pl_u.cpp
* Ability to use ReadBuffer and WriteBuffer with different buffer indexes, fixed up GetSharedFontInOrderOfPriority
* switched to NGLOG
* Update pl_u.cpp
* Update pl_u.cpp
* language_code is actually language code and not index
* u32->u64
* final cleanups
8 years ago
Lioncash
0197e28cc9
core_timing: Namespace all functions and constants in core_timing's header
All of these variables and functions are related to timings and should be within the namespace.
8 years ago
Lioncash
3abba08080
string_util: Remove StringFromFormat() and related functions
Given we utilize fmt, we don't need to provide our own functions for formatting anymore
8 years ago
Lioncash
843dd62c81
core: Replace usages of LOG_GENERIC with new fmt-capable equivalents
8 years ago
Lioncash
8475496630
general: Convert assertion macros over to be fmt-compatible
8 years ago
Lioncash
1913cf4783
kernel/shared_memory: Remove unnecessary semicolon at end of ConvertPermissions()
Functions don't need to be terminated by semicolons.
8 years ago
Lioncash
40dee76c57
kernel: Migrate logging macros to fmt-compatible ones
8 years ago
Subv
46572d027d
Kernel: Implemented mutex priority inheritance.
Verified with a hwtest and implemented based on reverse engineering.
Thread A's priority will get bumped to the highest priority among all the threads that are waiting for a mutex that A holds.
Once A releases the mutex and ownership is transferred to B, A's priority will return to normal and B's priority will be bumped.
8 years ago
Subv
a70ed9c8ae
Kernel: Use 0x2C as default main thread priority for homebrew and lone NRO/NSOs
8 years ago
Subv
013778aa21
Qt: Update the WaitTree widget to show info about the current mutex of each thread.
8 years ago
Subv
be155f4d9d
Kernel: Remove unused ConditionVariable class.
8 years ago
Subv
5fdfbfe25a
Kernel: Remove old and unused Mutex code.
8 years ago