diff --git a/xtoskrnl/includes/ke/dispatch.hh b/xtoskrnl/includes/ke/dispatch.hh index 0f58ba5..d6317df 100644 --- a/xtoskrnl/includes/ke/dispatch.hh +++ b/xtoskrnl/includes/ke/dispatch.hh @@ -19,6 +19,8 @@ namespace KE { public: STATIC XTFASTCALL VOID ExitDispatcher(IN KRUNLEVEL OldRunLevel); + STATIC XTAPI VOID UpdateRunTime(IN PKTRAP_FRAME TrapFrame, + IN KRUNLEVEL RunLevel); }; } diff --git a/xtoskrnl/ke/dispatch.cc b/xtoskrnl/ke/dispatch.cc index a8f9c78..df464aa 100644 --- a/xtoskrnl/ke/dispatch.cc +++ b/xtoskrnl/ke/dispatch.cc @@ -28,3 +28,23 @@ KE::Dispatcher::ExitDispatcher(IN KRUNLEVEL OldRunLevel) /* Lower runlevel */ RunLevel::LowerRunLevel(OldRunLevel); } + +/** + * Updates the runtime quantum of the currently executing thread and handles preemption. + * + * @param TrapFrame + * Supplies a pointer to the hardware trap frame representing the interrupted execution context. + * + * @param RunLevel + * Supplies the system run level at which the interrupt was taken. + * + * @return This routine does not return any value. + * + * @since XT 1.0 + */ +XTAPI +VOID +KE::Dispatcher::UpdateRunTime(IN PKTRAP_FRAME TrapFrame, + IN KRUNLEVEL RunLevel) +{ +}