seminix 0.1.61

seminix 内核标准库
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! 任务栈定义

cfg_if::cfg_if! {
    if #[cfg(aarch64_seminix)] {
        const ARCH_THREAD_STACK_SIZE: usize = semx_rt_define::aarch64::THREAD_STACK_SIZE;
    } else {
        /// 线程最大栈
        const ARCH_THREAD_STACK_SIZE: usize = crate::space::mm::pgtabledef::PAGE_SIZE;
    }
}

/// 线程最大栈(仅内核使用)
pub const THREAD_STACK_SIZE: usize = ARCH_THREAD_STACK_SIZE;