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