diff options
| author | 2020-02-25 13:22:11 -0400 | |
|---|---|---|
| committer | 2020-06-27 11:35:12 -0400 | |
| commit | 589f9cf108d306e8265ff4856b522cd32fbc121f (patch) | |
| tree | d9e78acb03901cdbbc3f7649b03048f7cd946f06 /src/core/core.h | |
| parent | SVC: Correct CreateThread, StartThread, ExitThread, SleepThread. (diff) | |
| download | yuzu-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.h | 7 |
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; | |||
| 27 | namespace Kernel { | 27 | namespace Kernel { |
| 28 | class GlobalScheduler; | 28 | class GlobalScheduler; |
| 29 | class KernelCore; | 29 | class KernelCore; |
| 30 | class PhysicalCore; | ||
| 30 | class Process; | 31 | class Process; |
| 31 | class Scheduler; | 32 | class 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 | ||