mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-23 18:06:24 +04:00
21 lines
628 B
Rust
21 lines
628 B
Rust
pub const USER_STACK_SIZE: usize = 4096 * 2;
|
|
pub const KERNEL_STACK_SIZE: usize = 4096 * 2;
|
|
pub const KERNEL_HEAP_SIZE: usize = 0x20_0000;
|
|
|
|
#[cfg(feature = "board_k210")]
|
|
pub const MEMORY_END: usize = 0x80600000;
|
|
|
|
#[cfg(feature = "board_qemu")]
|
|
pub const MEMORY_END: usize = 0x80800000;
|
|
|
|
pub const PAGE_SIZE: usize = 0x1000;
|
|
pub const PAGE_SIZE_BITS: usize = 0xc;
|
|
|
|
pub const TRAMPOLINE: usize = usize::MAX - PAGE_SIZE + 1;
|
|
pub const TRAP_CONTEXT: usize = TRAMPOLINE - PAGE_SIZE;
|
|
|
|
#[cfg(feature = "board_k210")]
|
|
pub const CLOCK_FREQ: usize = 403000000 / 62;
|
|
|
|
#[cfg(feature = "board_qemu")]
|
|
pub const CLOCK_FREQ: usize = 12500000; |