rCore-Tutorial-v3/os/src/config.rs

14 lines
438 B
Rust
Raw Normal View History

2020-12-20 19:49:35 +04:00
#[allow(unused)]
pub const USER_STACK_SIZE: usize = 4096 * 2;
pub const KERNEL_STACK_SIZE: usize = 4096 * 2;
pub const KERNEL_HEAP_SIZE: usize = 0x20_0000;
pub const MEMORY_END: usize = 0x80800000;
2020-12-03 06:40:30 +04:00
pub const PAGE_SIZE: usize = 0x1000;
pub const PAGE_SIZE_BITS: usize = 0xc;
pub const TRAMPOLINE: usize = usize::MAX - PAGE_SIZE + 1;
2021-09-30 21:09:21 +04:00
pub const TRAP_CONTEXT_BASE: usize = TRAMPOLINE - PAGE_SIZE;
2022-01-25 11:23:03 +04:00
pub use crate::board::{CLOCK_FREQ, MMIO};