From 8b05863ebbfcc1d854438e2cfd722f817dc714f3 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Tue, 13 Jun 2017 19:10:32 -0600 Subject: [PATCH] Disable preemption until paging bug is fixed --- src/interrupt/irq.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/interrupt/irq.rs b/src/interrupt/irq.rs index b422036..23fb68c 100644 --- a/src/interrupt/irq.rs +++ b/src/interrupt/irq.rs @@ -52,9 +52,11 @@ interrupt!(pit, { pic::MASTER.ack(); + /* if PIT_TICKS.fetch_add(1, Ordering::SeqCst) >= 10 { context::switch(); } + */ // Any better way of doing this? timeout::trigger();