Fix riscv and x86 compilation failure

This commit is contained in:
R Aadarsh
2026-07-09 19:26:01 +05:30
parent bfbbec47a9
commit fbfe439451
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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;
+1 -1
View File
@@ -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);