Update buddy system allocator, remove unused crate

This commit is contained in:
Yuke Peng 2023-03-08 00:33:33 -08:00 committed by Tate, Hongliang Tian
parent 2aeefd9850
commit 7fa72d2c3e
2 changed files with 2 additions and 3 deletions

View File

@ -11,8 +11,7 @@ x86_64 = "0.14.2"
x86 = "0.52.0"
spin = "0.9.4"
volatile = { version = "0.4.5", features = ["unstable"] }
buddy_system_allocator = "0.6"
linked_list_allocator = "0.9.0"
buddy_system_allocator = "0.9.0"
font8x8 = { version = "0.2.5", default-features = false, features = [
"unicode",
] }

View File

@ -2,7 +2,7 @@ use crate::config::KERNEL_HEAP_SIZE;
use buddy_system_allocator::LockedHeap;
#[global_allocator]
static HEAP_ALLOCATOR: LockedHeap = LockedHeap::empty();
static HEAP_ALLOCATOR: LockedHeap<32> = LockedHeap::empty();
#[alloc_error_handler]
pub fn handle_alloc_error(layout: core::alloc::Layout) -> ! {