X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Farch%2Fx86%2Fproc.c;h=aef72785f6f870fe4496aeff11a0fb8176344577;hb=8bfd42a027bc3332c06c93216ae6aaea02cb4126;hp=fb6b52dee852d89b6031605ffeeb26cb39273401;hpb=7c00f2f9205aeb803f0499c9e88c98048830bea6;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/arch/x86/proc.c b/KernelLand/Kernel/arch/x86/proc.c index fb6b52de..aef72785 100644 --- a/KernelLand/Kernel/arch/x86/proc.c +++ b/KernelLand/Kernel/arch/x86/proc.c @@ -986,7 +986,6 @@ void Proc_Scheduler(int CPU) outb(0x20, 0x20); __asm__ __volatile__ ("sti"); - gaCPUs[CPU].LastTimerThread = gaCPUs[CPU].Current; // Call the timer update code Timer_CallTimers(); @@ -995,6 +994,8 @@ void Proc_Scheduler(int CPU) { Proc_Reschedule(); } + + gaCPUs[CPU].LastTimerThread = gaCPUs[CPU].Current; } // === EXPORTS ===