Improved 32-bit x86 support

This commit is contained in:
Jeremy Soller
2022-08-18 14:57:15 -06:00
parent c09be1770b
commit 6b2439f1b9
6 changed files with 31 additions and 20 deletions
+2 -2
View File
@@ -83,7 +83,7 @@ impl IrqScheme {
*HANDLES.write() = Some(BTreeMap::new());
#[cfg(all(feature = "acpi", target_arch = "x86_64"))]
#[cfg(all(feature = "acpi", any(target_arch = "x86", target_arch = "x86_64")))]
let cpus = {
use crate::acpi::madt::*;
@@ -94,7 +94,7 @@ impl IrqScheme {
_ => None,
}).collect::<Vec<_>>()
};
#[cfg(not(all(feature = "acpi", target_arch = "x86_64")))]
#[cfg(not(all(feature = "acpi", any(target_arch = "x86", target_arch = "x86_64"))))]
let cpus = vec!(0);
IrqScheme {
+1 -1
View File
@@ -53,7 +53,7 @@ impl SysScheme {
files.insert("syscall", Box::new(syscall::resource));
files.insert("uname", Box::new(uname::resource));
files.insert("env", Box::new(|| Ok(Vec::from(crate::init_env()))));
#[cfg(target_arch = "x86_64")]
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
files.insert("spurious_irq", Box::new(irq::spurious_irq_resource));
SysScheme {