Home
last modified time | relevance | path

Searched refs:bump_allocator (Results 1 – 3 of 3) sorted by relevance

/DragonOS/kernel/src/arch/riscv64/mm/
H A Dinit.rs75 let mut bump_allocator = BumpAllocator::<RiscV64MMArch>::new(0); in riscv_mm_init() localVariable
86 &mut bump_allocator, in riscv_mm_init()
130 bump_allocator.usage().used().bytes() / 1024 in riscv_mm_init()
134 let buddy_allocator = unsafe { BuddyAllocator::<MMArch>::new(bump_allocator).unwrap() }; in riscv_mm_init()
/DragonOS/kernel/src/mm/allocator/
H A Dbuddy.rs80 pub unsafe fn new(mut bump_allocator: BumpAllocator<A>) -> Option<Self> { in new()
81 let initial_free_pages = bump_allocator.usage().free(); in new()
82 let total_memory = bump_allocator.usage().total(); in new()
91 let curr_page = bump_allocator.allocate_one(); in new()
109 let mut offset_in_remain_area = bump_allocator in new()
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dmod.rs463 let mut bump_allocator = BumpAllocator::<X86_64MMArch>::new(phy_offset.data()); in allocator_init() localVariable
466 bump_allocator.offset() in allocator_init()
481 &mut bump_allocator, in allocator_init()
522 bump_allocator.offset() / 1024 in allocator_init()
526 let buddy_allocator = unsafe { BuddyAllocator::<X86_64MMArch>::new(bump_allocator).unwrap() }; in allocator_init()