mirror of
https://github.com/hexagonal-sun/moss-kernel.git
synced 2026-05-24 17:05:41 -04:00
libkernel: memory: phys: expose MAX_ORDER const.
Expose the physical memory allocator MAX_ORDER const.
This commit is contained in:
committed by
Ashwin Naren
parent
d807fecac2
commit
d0e9cccd37
@@ -28,9 +28,9 @@ use super::{
|
||||
smalloc::Smalloc,
|
||||
};
|
||||
|
||||
// The maximum order for the buddy system. This corresponds to blocks of size
|
||||
// 2^MAX_ORDER pages.
|
||||
const MAX_ORDER: usize = 10;
|
||||
/// The maximum order for the buddy system. This corresponds to blocks of size
|
||||
/// 2^MAX_ORDER pages.
|
||||
pub const MAX_ORDER: usize = 10;
|
||||
|
||||
pub(super) struct FrameAllocatorInner {
|
||||
frame_list: FrameList,
|
||||
|
||||
Reference in New Issue
Block a user