2020-11-28 21:31:36 +04:00
|
|
|
pub const USER_STACK_SIZE: usize = 4096 * 2;
|
|
|
|
pub const KERNEL_STACK_SIZE: usize = 4096 * 2;
|
2020-12-11 14:04:57 +04:00
|
|
|
pub const KERNEL_HEAP_SIZE: usize = 0x20_0000;
|
2021-02-07 14:31:18 +04:00
|
|
|
|
|
|
|
#[cfg(feature = "board_k210")]
|
2020-12-11 14:04:57 +04:00
|
|
|
pub const MEMORY_END: usize = 0x80600000;
|
2021-02-07 14:31:18 +04:00
|
|
|
|
|
|
|
#[cfg(feature = "board_qemu")]
|
|
|
|
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;
|
2020-11-29 06:31:15 +04:00
|
|
|
|
2020-12-06 09:56:13 +04:00
|
|
|
pub const TRAMPOLINE: usize = usize::MAX - PAGE_SIZE + 1;
|
|
|
|
pub const TRAP_CONTEXT: usize = TRAMPOLINE - PAGE_SIZE;
|
|
|
|
|
2020-11-29 06:31:15 +04:00
|
|
|
#[cfg(feature = "board_k210")]
|
2021-01-26 11:34:00 +04:00
|
|
|
pub const CLOCK_FREQ: usize = 403000000 / 62;
|
2020-11-29 06:31:15 +04:00
|
|
|
|
|
|
|
#[cfg(feature = "board_qemu")]
|
2021-01-30 10:21:40 +04:00
|
|
|
pub const CLOCK_FREQ: usize = 12500000;
|