From 776bb83a70ff58e8b4125339566b954255c6f370 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Tue, 7 Feb 2017 22:14:28 -0700
Subject: [PATCH] Unstick system by acknowledging IRQs on boot

---
 arch/x86_64/src/start.rs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/x86_64/src/start.rs b/arch/x86_64/src/start.rs
index 44880095..8af0168d 100644
--- a/arch/x86_64/src/start.rs
+++ b/arch/x86_64/src/start.rs
@@ -120,6 +120,9 @@ pub unsafe extern fn kstart() -> ! {
         // Read ACPI tables, starts APs
         acpi::init(&mut active_table);
 
+        // Clear pending IRQs
+        interrupt::irq::acknowledge(8);
+
         BSP_READY.store(true, Ordering::SeqCst);
     }
 
-- 
GitLab