pub fn kernel_stack_position(app_id: usize) -> (usize, usize) {
    let top = TRAMPOLINE - app_id * (KERNEL_STACK_SIZE + PAGE_SIZE);
    let bottom = top - KERNEL_STACK_SIZE;
    (bottom, top)
}
/// Return (bottom, top) of a kernel stack in kernel space.
Return (bottom, top) of a kernel stack in kernel space.
Return ( bottom top ) of a kernel stack in kernel space .
pub fn kernel_stack_position(app_id: usize) -> (usize, usize) {
    let top = TRAMPOLINE - app_id * (KERNEL_STACK_SIZE + PAGE_SIZE);
    let bottom = top - KERNEL_STACK_SIZE;
    (bottom, top)
}
pub fn kernel_stack_position ( app_id : usize ) -> ( usize , usize ) { let top = TRAMPOLINE - app_id * ( KERNEL_STACK_SIZE + PAGE_SIZE ) ; let bottom = top - KERNEL_STACK_SIZE ; ( bottom , top ) }
Return (bottom, top) of a kernel stack in kernel space.
Return ( bottom top ) of a kernel stack in kernel space .
app_id
usize
app_id
usize