Lioncash
33df906815
scheduler: Mark parameter of AskForReselectionOrMarkRedundant() as const
This is only compared against, so it can be made const.
6 years ago
Lioncash
0ae1dedad7
scheduler: Silence sign conversion warnings
6 years ago
Lioncash
3dbc651296
scheduler: Initialize class members directly where applicable
Reduces the overall amount of code.
6 years ago
Lioncash
34e9a6ea64
scheduler: Amend documentation comments
Adjusts the formatting of a few of the comments an ensures they get
recognized as proper Doxygen comments.
6 years ago
bunnei
2b9c7a7dfe
core: Fix clang-format errors.
6 years ago
Nicolae-Andrei Cociorba
47765b4d61
Fix null pointer deref.
6 years ago
Lioncash
4a7d680a7f
dmnt_cheat_vm: Correct register Restore and ClearRegs behavior
Previously these were performing the same behavior as the Save and
ClearSaved opcode types.
6 years ago
Lioncash
1733d2604c
hid/npad: Fix incorrect connection boolean value in ConnectAllDisconnectedControllers()
We should be setting the connection state to true, otherwise we aren't
actually making the controllers connected like the function name
indicates.
6 years ago
Lioncash
29fddba52e
hid/npad: Add missing break in default case
While not an issue, it does prevent fallthrough from occurring if
anything is ever added after this case (unlikely to occur, but this
turns a trivial "should not cause issues" into a definite "won't cause
issues).
6 years ago
Lioncash
060b33cfbe
hid/npad: Replace std::for_each with ranged for loops
Performs the same behavior, but is built into the core language itself.
No functional change.
6 years ago
Lioncash
22e917cd8e
hid/npad: Remove redundant non-const variant of IsControllerSupported()
The const qualified variant can also be called in non-const contexts, so
we can remove the non-const variant to eliminate a bit of code
duplication.
6 years ago
Lioncash
98b277dfae
hid/npad: Move function declarations
Clearly separate these from the variable declarations to make them more
visible.
6 years ago
Lioncash
7c4a4b4fc1
core/core: Resolve -Wreorder warnings
Amends the initializer lists to be ordered in the same manner that
they're declared within the class.
6 years ago
Lioncash
2b7f82e089
core/memory/cheat_engine: Resolve -Wreorder warnings
Amends the initializer lists to be ordered in the same manner that
they're declared within the class.
6 years ago
Lioncash
76157b0b04
apm/controller: Make SetPerformanceConfiguration() use an array of pairs over a map
While a map is an OK way to do lookups (and usually recommended in most
cases), this is a map that lives for the entire duration of the program
and only deallocates its contents when the program terminates.
Given the total size of the map is quite small, we can simply use a
std::array of pairs and utilize std::find_if to perform the same
behavior without loss of performance.
This eliminates a static constructor and places the data into the
read-only segment.
While we're at it, we can also handle malformed inputs instead of
directly dereferencing the resulting iterator.
6 years ago
Lioncash
756203599e
apm/controller: Make GetCurrentPerformanceMode() a const member function
This doesn't modify instance state, so it can be made const qualified.
6 years ago
Lioncash
3d91f45a30
bcat: Remove use of global system accessors
Removes all uses of the global system accessor within the BCAT
interface.
6 years ago
Fernando Sahmkow
4f8fa2dd29
Kernel Thread: Cleanup THREADPROCESSORID_DONT_UPDATE.
6 years ago
Fernando Sahmkow
3300a7631d
Kernel: Address Feedback 2
6 years ago
Fernando Sahmkow
5acd086b18
Kernel: Clang Format
6 years ago
Fernando Sahmkow
ac9dd91f1e
Kernel: Reverse global accessor removal.
6 years ago
Fernando Sahmkow
a88238d68d
Kernel: Address Feedback.
6 years ago
Fernando Sahmkow
17b53b4a54
Kernel Scheduler: Make sure the global scheduler shutdowns correctly.
6 years ago
Fernando Sahmkow
0d57b899dd
Kernel_Thread: Eliminate most global accessors.
6 years ago
Fernando Sahmkow
59b89b1dd5
KernelSVC: Assert that condition variable address is aligned to 4 bytes.
6 years ago
Fernando Sahmkow
8363d07df8
Kernel: Correct Paused scheduling
6 years ago
Fernando Sahmkow
3da21e4b4f
Kernel: Corrections to Wait Objects clearing in which a thread could still be signalled after a timeout or a cancel.
6 years ago
Fernando Sahmkow
248795db6e
Kernel: Correct redundant yields to only advance time forward.
6 years ago
Fernando Sahmkow
a24c331b84
Kernel: Corrections to ModifyByWaitingCountAndSignalToAddressIfEqual
6 years ago
Fernando Sahmkow
598203b5cf
Kernel: Correct Results in Condition Variables and Mutexes
6 years ago
Fernando Sahmkow
3c9e26a003
Kernel: Clang Format
6 years ago
Fernando Sahmkow
abc8856e2c
Kernel: Remove global system accessor from WaitObject
6 years ago
Fernando Sahmkow
7d04b271a6
Scheduler: Implement Yield Count and Core migration on Thread Preemption.
6 years ago
Fernando Sahmkow
f2989c81d9
Scheduler: Corrections to YieldAndBalanceLoad and Yield bombing protection.
6 years ago
Fernando Sahmkow
68325300ae
Kernel: Initial implementation of thread preemption.
6 years ago
Fernando Sahmkow
acdce3b4df
Scheduler: Add protections for Yield bombing
In case of redundant yields, the scheduler will now idle the core for
it's timeslice, in order to avoid continuously yielding the same thing
over and over.
6 years ago
Fernando Sahmkow
5130168171
Kernel: Style and Corrections
7 years ago
Fernando Sahmkow
87334f0f16
Correct PrepareReschedule
7 years ago
Fernando Sahmkow
655ed87f53
Comment and reorganize the scheduler
7 years ago
Fernando Sahmkow
891babbe20
Add PrepareReschedule where required.
7 years ago
Fernando Sahmkow
4760c27922
Correct compiling errors and addapt to the new interface.
7 years ago
Fernando Sahmkow
bddf90701b
Correct Supervisor Calls to work with the new scheduler,
7 years ago
Fernando Sahmkow
3905bb3e7b
Redesign CPU Cores to work with the new scheduler
7 years ago
Fernando Sahmkow
07524b63e8
Add interfacing to the Global Scheduler
7 years ago
Fernando Sahmkow
18c796ab58
Addapt thread class to the new Scheduler
7 years ago
Fernando Sahmkow
7a10ae0128
Implement a new Core Scheduler
7 years ago
Zach Hilman
fd66788be4
card_image: Implement system update commands in XCI
6 years ago
Zach Hilman
8d904c20be
pl_u: Fix mismatched rebase size error in font encryption
6 years ago
Zach Hilman
1dcc71fc9c
pl_u: Use kernel physical memory
6 years ago
Zach Hilman
45cdc92252
pl_u: Remove excess static qualifier
6 years ago