From 386df39c9866a4d945de46ef0dcab2363c674e0e Mon Sep 17 00:00:00 2001 From: Nathan Ringo Date: Sun, 1 Sep 2024 19:59:44 -0500 Subject: Move almost all the kernel into crates/. --- crates/alloc_buddy/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/alloc_buddy/src') diff --git a/crates/alloc_buddy/src/lib.rs b/crates/alloc_buddy/src/lib.rs index fa14848..c890e79 100644 --- a/crates/alloc_buddy/src/lib.rs +++ b/crates/alloc_buddy/src/lib.rs @@ -1,10 +1,6 @@ //! A buddy allocator, used to allocate pages. #![no_std] -mod bitset; -mod free_list; -mod tree; - use crate::{ bitset::{Bitset, SubregionStatus}, free_list::{FreeList, FreeListNode}, @@ -16,6 +12,10 @@ use core::{fmt, mem, ptr::NonNull}; use vernos_alloc_physmem_free_list::FreeListAllocator; use vernos_utils::debug; +mod bitset; +mod free_list; +mod tree; + /// A buddy allocator. pub struct BuddyAllocator< 'allocator, -- cgit v1.2.3