mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-23 01:13:23 +00:00
Reorganize the codebase
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
888853a6de
commit
271a16d492
21
framework/jinux-frame/src/config.rs
Normal file
21
framework/jinux-frame/src/config.rs
Normal file
@ -0,0 +1,21 @@
|
||||
#![allow(unused)]
|
||||
|
||||
use log::Level;
|
||||
|
||||
pub const USER_STACK_SIZE: usize = PAGE_SIZE * 4;
|
||||
pub const KERNEL_STACK_SIZE: usize = PAGE_SIZE * 64;
|
||||
pub const KERNEL_HEAP_SIZE: usize = 0x2_000_000;
|
||||
|
||||
pub const KERNEL_OFFSET: usize = 0xffffffff80000000;
|
||||
|
||||
pub const PHYS_OFFSET: usize = 0xFFFF800000000000;
|
||||
pub const ENTRY_COUNT: usize = 512;
|
||||
|
||||
pub const PAGE_SIZE: usize = 0x1000;
|
||||
pub const PAGE_SIZE_BITS: usize = 0xc;
|
||||
|
||||
pub const KVA_START: usize = (usize::MAX) << PAGE_SIZE_BITS;
|
||||
|
||||
pub const DEFAULT_LOG_LEVEL: Level = Level::Error;
|
||||
/// This value represent the base timer frequency in Hz
|
||||
pub const TIMER_FREQ: u64 = 100;
|
Reference in New Issue
Block a user