pub fn stack_limit(stack_size: u32) -> i32
Minimum address the stack pointer can reach (STACK_SEGMENT_END - stack_size). If SP goes below this, we have a stack overflow.
STACK_SEGMENT_END - stack_size