mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-23 02:42:09 +00:00
kern: KSchedulerInterruptTask -> KSchedulerInterruptHandler
This commit is contained in:
parent
cb28150912
commit
44d10da7b8
1 changed files with 6 additions and 10 deletions
|
@ -26,18 +26,14 @@ namespace ams::kern {
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
class KSchedulerInterruptTask : public KInterruptTask {
|
class KSchedulerInterruptHandler : public KInterruptHandler {
|
||||||
public:
|
public:
|
||||||
constexpr KSchedulerInterruptTask() : KInterruptTask() { /* ... */ }
|
constexpr KSchedulerInterruptHandler() : KInterruptHandler() { /* ... */ }
|
||||||
|
|
||||||
virtual KInterruptTask *OnInterrupt(s32 interrupt_id) override {
|
virtual KInterruptTask *OnInterrupt(s32 interrupt_id) override {
|
||||||
MESOSPHERE_UNUSED(interrupt_id);
|
MESOSPHERE_UNUSED(interrupt_id);
|
||||||
return GetDummyInterruptTask();
|
return GetDummyInterruptTask();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void DoTask() override {
|
|
||||||
MESOSPHERE_PANIC("KSchedulerInterruptTask::DoTask was called!");
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ALWAYS_INLINE void IncrementScheduledCount(KThread *thread) {
|
ALWAYS_INLINE void IncrementScheduledCount(KThread *thread) {
|
||||||
|
@ -46,10 +42,10 @@ namespace ams::kern {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
KSchedulerInterruptTask g_scheduler_interrupt_task;
|
KSchedulerInterruptHandler g_scheduler_interrupt_handler;
|
||||||
|
|
||||||
ALWAYS_INLINE auto *GetSchedulerInterruptTask() {
|
ALWAYS_INLINE auto *GetSchedulerInterruptHandler() {
|
||||||
return std::addressof(g_scheduler_interrupt_task);
|
return std::addressof(g_scheduler_interrupt_handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -69,7 +65,7 @@ namespace ams::kern {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Bind interrupt handler. */
|
/* Bind interrupt handler. */
|
||||||
Kernel::GetInterruptManager().BindHandler(GetSchedulerInterruptTask(), KInterruptName_Scheduler, m_core_id, KInterruptController::PriorityLevel_Scheduler, false, false);
|
Kernel::GetInterruptManager().BindHandler(GetSchedulerInterruptHandler(), KInterruptName_Scheduler, m_core_id, KInterruptController::PriorityLevel_Scheduler, false, false);
|
||||||
|
|
||||||
/* Set the current thread. */
|
/* Set the current thread. */
|
||||||
m_current_thread = GetCurrentThreadPointer();
|
m_current_thread = GetCurrentThreadPointer();
|
||||||
|
|
Loading…
Reference in a new issue