增加一个配置, 用来表示qemu的cpu频率

ch3
zhangxinyu 2 years ago
parent 7b6d48f783
commit 63e556a858

@ -0,0 +1,3 @@
//! Constants used in rCore for qemu
pub const CLOCK_FREQ: usize = 12500000;

@ -4,3 +4,5 @@ pub const MAX_APP_NUM: usize = 4; // 支持最大的用户应用数量
pub const USER_STACK_SIZE: usize = 4096 * 2; // 栈大小为8kb pub const USER_STACK_SIZE: usize = 4096 * 2; // 栈大小为8kb
pub const KERNEL_STACK_SIZE: usize = 4096 * 2; pub const KERNEL_STACK_SIZE: usize = 4096 * 2;
pub use crate::board::*;
Loading…
Cancel
Save