From f7554e0e2427eadd1634fbd7a22cb3059a3e3ff2 Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Tue, 5 May 2026 23:22:55 +0200 Subject: [PATCH] Implement KE::Dispatcher::UpdateRunTime stub --- xtoskrnl/includes/ke/dispatch.hh | 2 ++ xtoskrnl/ke/dispatch.cc | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) 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) +{ +}