Extend user heap limit to 64MB

This commit is contained in:
Yuke Peng
2024-07-26 16:25:09 +08:00
committed by Tate, Hongliang Tian
parent cf1a488132
commit f57dcd814a

View File

@ -17,7 +17,7 @@ use crate::{
/// The base address of user heap /// The base address of user heap
pub const USER_HEAP_BASE: Vaddr = 0x0000_0000_1000_0000; pub const USER_HEAP_BASE: Vaddr = 0x0000_0000_1000_0000;
/// The max allowed size of user heap /// The max allowed size of user heap
pub const USER_HEAP_SIZE_LIMIT: usize = PAGE_SIZE * 1000; // 4MB pub const USER_HEAP_SIZE_LIMIT: usize = 16 * 1024 * PAGE_SIZE; // 16 * 4MB
#[derive(Debug)] #[derive(Debug)]
pub struct Heap { pub struct Heap {