mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-08 21:06:48 +00:00
Update buddy system allocator, remove unused crate
This commit is contained in:
parent
2aeefd9850
commit
7fa72d2c3e
@ -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",
|
||||
] }
|
||||
|
@ -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) -> ! {
|
||||
|
Loading…
x
Reference in New Issue
Block a user