mirror of
https://github.com/LearningOS/rust-based-os-comp2022.git
synced 2026-05-09 15:21:27 +08:00
11 lines
369 B
Rust
11 lines
369 B
Rust
//! Constants used in rCore
|
|
|
|
pub const USER_STACK_SIZE: usize = 4096;
|
|
pub const KERNEL_STACK_SIZE: usize = 4096 * 20;
|
|
pub const KERNEL_HEAP_SIZE: usize = 0x20000;
|
|
pub const MAX_APP_NUM: usize = 16;
|
|
pub const APP_BASE_ADDRESS: usize = 0x80400000;
|
|
pub const APP_SIZE_LIMIT: usize = 0x20000;
|
|
pub const CLOCK_FREQ: usize = 12500000;
|
|
pub const MAX_SYSCALL_NUM: usize = 500;
|