Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandruradovici committed Feb 15, 2022
1 parent e93e3e5 commit 50c5117
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/src/syscalls_impl_arm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ unsafe impl RawSyscalls for crate::TockSyscalls {
unsafe {
asm!("svc 0",
inlateout("r0") r0 => _, // a1
inlateout("r1") r1 => _, // a2
// r4-r8 are callee-saved.
// r9 is platform-specific. We don't use it in libtock_runtime,
// so it is either unused or used as a callee-saved register.
Expand All @@ -37,7 +38,7 @@ unsafe impl RawSyscalls for crate::TockSyscalls {
// r13 is the stack pointer and must be restored by the callee.
// r15 is the program counter.

clobber_abi("C"), // a2, a3, a4, ip (r12), lr (r14)
clobber_abi("C"), // a3, a4, ip (r12), lr (r14)
);
}
}
Expand Down

0 comments on commit 50c5117

Please sign in to comment.