From fbfe439451d685fb31e468bc39bf0d86b498fe33 Mon Sep 17 00:00:00 2001 From: R Aadarsh Date: Thu, 9 Jul 2026 19:26:01 +0530 Subject: [PATCH] Fix riscv and x86 compilation failure --- src/acpi/mod.rs | 2 ++ src/arch/x86_shared/start.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/acpi/mod.rs b/src/acpi/mod.rs index 8e742b5da8..fd1e88b948 100644 --- a/src/acpi/mod.rs +++ b/src/acpi/mod.rs @@ -23,9 +23,11 @@ mod rsdp; mod rsdt; mod rxsdt; pub mod sdt; +#[cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "aarch64"))] pub mod slit; #[cfg(target_arch = "aarch64")] mod spcr; +#[cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "aarch64"))] pub mod srat; mod xsdt; diff --git a/src/arch/x86_shared/start.rs b/src/arch/x86_shared/start.rs index 3a7abbdc39..295c273501 100644 --- a/src/arch/x86_shared/start.rs +++ b/src/arch/x86_shared/start.rs @@ -104,7 +104,7 @@ unsafe extern "C" fn start(args_ptr: *const KernelArgs, stack_end: usize) -> ! { // Initialize RMM #[cfg(target_arch = "x86")] - let bump_allocator = + let mut bump_allocator = crate::startup::memory::init(&args, Some(0x100000), Some(0x40000000)); #[cfg(target_arch = "x86_64")] let mut bump_allocator = crate::startup::memory::init(&args, Some(0x100000), None);