Sign in
opensecura
/
3p
/
tock
/
libtock-rs
/
c5748994cab06d2e4d2b1b985bbbbc0eb396cb28
/
.
/
core
/
src
/
debug
/
platform_riscv32.rs
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
}