···33use core::mem;
44use core::ops::Range;
5566-pub use frame_allocator::{BootstrapAllocator, FreeRegions, UsedRegions, DEFAULT_MAX_REGIONS};
66+pub use frame_allocator::{BootstrapAllocator, DEFAULT_MAX_REGIONS, FreeRegions, UsedRegions};
7788use crate::arch::Arch;
99use crate::flush::Flush;
+5-4
libs/kmem/src/bootstrap/frame_allocator.rs
···22use core::fmt;
33use core::num::NonZeroUsize;
44use core::ops::Range;
55+56use arrayvec::ArrayVec;
67use lock_api::Mutex;
78···236237237238#[cfg(test)]
238239mod tests {
239239- use crate::arch::emulate::EmulateArch;
240240 use crate::arch::Arch;
241241 use crate::bootstrap::BootstrapAllocator;
242242+ use crate::emulate::MachineBuilder;
243243+ use crate::emulate::arch::EmulateArch;
242244 use crate::frame_allocator::FrameAllocator;
243243- use crate::{archtest, PhysicalMemoryMapping};
244244- use crate::test_utils::MachineBuilder;
245245+ use crate::{PhysicalMemoryMapping, archtest};
245246246247 archtest! {
247248 // Assert that the BootstrapAllocator can allocate frames
···275276 .unwrap_err();
276277 }
277278278278- // Assert that the BootstrapAllocator can allocate zeored frames in
279279+ // Assert that the BootstrapAllocator can allocate zeroed frames in
279280 // bootstrap (bare, before paging is enabled) mode.
280281 #[test]
281282 fn allocate_contiguous_zeroed_bare<A: Arch>() {