|
|
@ -848,15 +848,11 @@ size_t KernelCore::CurrentPhysicalCoreIndex() const {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Kernel::PhysicalCore& KernelCore::CurrentPhysicalCore() {
|
|
|
|
Kernel::PhysicalCore& KernelCore::CurrentPhysicalCore() {
|
|
|
|
u32 core_id = impl->GetCurrentHostThreadID();
|
|
|
|
return impl->cores[CurrentPhysicalCoreIndex()];
|
|
|
|
ASSERT(core_id < Core::Hardware::NUM_CPU_CORES);
|
|
|
|
|
|
|
|
return impl->cores[core_id];
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const Kernel::PhysicalCore& KernelCore::CurrentPhysicalCore() const {
|
|
|
|
const Kernel::PhysicalCore& KernelCore::CurrentPhysicalCore() const {
|
|
|
|
u32 core_id = impl->GetCurrentHostThreadID();
|
|
|
|
return impl->cores[CurrentPhysicalCoreIndex()];
|
|
|
|
ASSERT(core_id < Core::Hardware::NUM_CPU_CORES);
|
|
|
|
|
|
|
|
return impl->cores[core_id];
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Kernel::KScheduler* KernelCore::CurrentScheduler() {
|
|
|
|
Kernel::KScheduler* KernelCore::CurrentScheduler() {
|
|
|
|