From 248cfa51ae6147c6380b6e0a4ffd3fcd7c07c652 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sat, 29 Apr 2017 10:46:07 +0200 Subject: [PATCH] Remove PIT_TICKS assert --- src/context/switch.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/context/switch.rs b/src/context/switch.rs index c731929..4413d89 100644 --- a/src/context/switch.rs +++ b/src/context/switch.rs @@ -17,7 +17,6 @@ pub unsafe fn switch() -> bool { //set PIT Interrupt counter to 0, giving each process same amount of PIT ticks PIT_TICKS.store(0, Ordering::SeqCst); - assert_eq!(PIT_TICKS.load(Ordering::SeqCst), 0); // Set the global lock to avoid the unsafe operations below from causing issues while arch::CONTEXT_SWITCH_LOCK.compare_and_swap(false, true, Ordering::SeqCst) {