summaryrefslogtreecommitdiff
path: root/src/core/core.h
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2020-02-25 13:22:11 -0400
committerGravatar Fernando Sahmkow2020-06-27 11:35:12 -0400
commit589f9cf108d306e8265ff4856b522cd32fbc121f (patch)
treed9e78acb03901cdbbc3f7649b03048f7cd946f06 /src/core/core.h
parentSVC: Correct CreateThread, StartThread, ExitThread, SleepThread. (diff)
downloadyuzu-589f9cf108d306e8265ff4856b522cd32fbc121f.tar.gz
yuzu-589f9cf108d306e8265ff4856b522cd32fbc121f.tar.xz
yuzu-589f9cf108d306e8265ff4856b522cd32fbc121f.zip
SVC: Correct GetThreadPriority, SetThreadPriority, GetThreadCoreMask, SetThreadCoreMask, GetCurrentProcessorNumber
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h
index 7f170fc54..9a0dd1075 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -27,6 +27,7 @@ class VfsFilesystem;
27namespace Kernel { 27namespace Kernel {
28class GlobalScheduler; 28class GlobalScheduler;
29class KernelCore; 29class KernelCore;
30class PhysicalCore;
30class Process; 31class Process;
31class Scheduler; 32class Scheduler;
32} // namespace Kernel 33} // namespace Kernel
@@ -211,6 +212,12 @@ public:
211 /// Gets the scheduler for the CPU core that is currently running 212 /// Gets the scheduler for the CPU core that is currently running
212 const Kernel::Scheduler& CurrentScheduler() const; 213 const Kernel::Scheduler& CurrentScheduler() const;
213 214
215 /// Gets the physical core for the CPU core that is currently running
216 Kernel::PhysicalCore& CurrentPhysicalCore();
217
218 /// Gets the physical core for the CPU core that is currently running
219 const Kernel::PhysicalCore& CurrentPhysicalCore() const;
220
214 /// Gets a reference to an ARM interface for the CPU core with the specified index 221 /// Gets a reference to an ARM interface for the CPU core with the specified index
215 ARM_Interface& ArmInterface(std::size_t core_index); 222 ARM_Interface& ArmInterface(std::size_t core_index);
216 223