blob: a7773345e492eb7b9be2ce2192bc0132f9d2a347 [file] [log] [blame]
pub fn get_stack_pointer() -> usize {
let stack_pointer;
unsafe { llvm_asm!("mov $0, sp" : "=r"(stack_pointer) : : : "volatile") };
stack_pointer
}