mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-09 13:26: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"
|
x86 = "0.52.0"
|
||||||
spin = "0.9.4"
|
spin = "0.9.4"
|
||||||
volatile = { version = "0.4.5", features = ["unstable"] }
|
volatile = { version = "0.4.5", features = ["unstable"] }
|
||||||
buddy_system_allocator = "0.6"
|
buddy_system_allocator = "0.9.0"
|
||||||
linked_list_allocator = "0.9.0"
|
|
||||||
font8x8 = { version = "0.2.5", default-features = false, features = [
|
font8x8 = { version = "0.2.5", default-features = false, features = [
|
||||||
"unicode",
|
"unicode",
|
||||||
] }
|
] }
|
||||||
|
@ -2,7 +2,7 @@ use crate::config::KERNEL_HEAP_SIZE;
|
|||||||
use buddy_system_allocator::LockedHeap;
|
use buddy_system_allocator::LockedHeap;
|
||||||
|
|
||||||
#[global_allocator]
|
#[global_allocator]
|
||||||
static HEAP_ALLOCATOR: LockedHeap = LockedHeap::empty();
|
static HEAP_ALLOCATOR: LockedHeap<32> = LockedHeap::empty();
|
||||||
|
|
||||||
#[alloc_error_handler]
|
#[alloc_error_handler]
|
||||||
pub fn handle_alloc_error(layout: core::alloc::Layout) -> ! {
|
pub fn handle_alloc_error(layout: core::alloc::Layout) -> ! {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user