alloc_trampoline_stack

Function alloc_trampoline_stack 

Source
pub fn alloc_trampoline_stack(
    stack_size_bytes: usize,
    with_guard: bool,
) -> (PhysicalAddress, VirtualAddress)
Expand description

Allocate a trampoline stack (optionally with a guard page) and return:

  • base_phys: physical base address (also used as VA, since we’ll identity-map it)
  • top_va: virtual top-of-stack address you’ll load into RSP