Add PrcbLock and runtime counters to KPROCESSOR_CONTROL_BLOCK
All checks were successful
Builds / ExectOS (i686, release) (push) Successful in 35s
Builds / ExectOS (amd64, release) (push) Successful in 37s
Builds / ExectOS (amd64, debug) (push) Successful in 45s
Builds / ExectOS (i686, debug) (push) Successful in 43s

This commit is contained in:
2026-05-27 23:15:19 +02:00
parent 46594f1fc3
commit 19a9dfe7c6
3 changed files with 19 additions and 0 deletions

View File

@@ -152,6 +152,7 @@ KE::SystemTime::UpdateSystemTime(IN PKTRAP_FRAME TrapFrame,
IN KRUNLEVEL RunLevel)
{
LARGE_INTEGER InterruptTime, SystemTime;
PKPROCESSOR_CONTROL_BLOCK ControlBlock;
LONG CurrentTickOffset;
/* Advance the global interrupt time on every hardware tick */
@@ -179,4 +180,10 @@ KE::SystemTime::UpdateSystemTime(IN PKTRAP_FRAME TrapFrame,
/* Update processor and thread runtime accounting */
KE::Dispatcher::UpdateRunTime(TrapFrame, RunLevel);
}
else
{
/* Increment the interrupt count */
ControlBlock = KE::Processor::GetCurrentProcessorControlBlock();
ControlBlock->InterruptCount++;
}
}