From 439b93dd3e22311caee6d69eb4aa1da5b81a0731 Mon Sep 17 00:00:00 2001 From: Nathan Ringo Date: Sat, 31 Aug 2024 23:30:46 -0500 Subject: Almost all of buddy initialization. --- crates/buddy_allocator/src/tree.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/buddy_allocator/src/tree.rs') diff --git a/crates/buddy_allocator/src/tree.rs b/crates/buddy_allocator/src/tree.rs index a303d40..1673e26 100644 --- a/crates/buddy_allocator/src/tree.rs +++ b/crates/buddy_allocator/src/tree.rs @@ -5,13 +5,13 @@ #[derive(Debug)] pub struct Tree<'buddy, const PAGE_SIZE: usize, const PAGE_SIZE_BITS: usize> { /// The base address of the tree. - pub base: *const (), + pub base_ptr: *const [u8; PAGE_SIZE], /// The log2 of the number of pages in the region represented by the tree. - pub log2_page_count: usize, + pub size_class: usize, /// The offset in the bitset to the bits responsible for this tree's pages. - bitset_offset: usize, + pub bitset_offset: usize, // /// The bitset used to track whether subregion are allocated or not in this tree. // pub bitset: &'buddy mut BitVec, -- cgit v1.2.3