From d667fa61e6cfb37bca4b53493a98be4b6eee7ab3 Mon Sep 17 00:00:00 2001
From: Paul Sbarra <Sbarra.Paul@gmail.com>
Date: Thu, 16 Mar 2017 22:32:57 -0500
Subject: [PATCH] Prevent cpuid get_extended_function_info panic

A kernel panic occurs on some CPUs (notably qemu-system-x86_64) when
calling rust-cpuid's get_extended_function_info.  This is fixed upstream
in commit c3ebfc553cdff98d19d29777fd85c4f9182bfb66 but has yet to make
it crates.io.

The panic can by triggered by running "ls sys:" from ion and causes
redox to become unresponsive.
---
 arch/x86_64/Cargo.toml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86_64/Cargo.toml b/arch/x86_64/Cargo.toml
index 635906d8..dbd2c5c5 100644
--- a/arch/x86_64/Cargo.toml
+++ b/arch/x86_64/Cargo.toml
@@ -5,7 +5,7 @@ version = "0.1.0"
 [dependencies]
 alloc_kernel = { path = "../../alloc_kernel/" }
 bitflags = "0.7"
-raw-cpuid = "2.0"
+raw-cpuid = { git = "https://github.com/gz/rust-cpuid", branch = "master" }
 spin = "0.4"
 redox_syscall = "0.1"
 
-- 
GitLab