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 b4db50a commit e93e3e5
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions runtime/src/syscalls_impl_arm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ unsafe impl RawSyscalls for crate::TockSyscalls {
unsafe {
asm!("svc 0",
inlateout("r0") r0 => _, // a1
lateout("r1") _, // a2
lateout("r2") _, // a3
lateout("r3") _, // a4
// 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 @@ -20,7 +17,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"), // ip (r12), lr (r14)
clobber_abi("C"), // a2, a3, a4, ip (r12), lr (r14)
);
}
}
Expand All @@ -32,9 +29,6 @@ unsafe impl RawSyscalls for crate::TockSyscalls {
unsafe {
asm!("svc 0",
inlateout("r0") r0 => _, // a1
inlateout("r1") r1 => _, // a2
lateout("r2") _, // a3
lateout("r3") _, // a4
// 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 @@ -43,7 +37,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"), // ip (r12), lr (r14)
clobber_abi("C"), // a2, a3, a4, ip (r12), lr (r14)
);
}
}
Expand Down

0 comments on commit e93e3e5

Please sign in to comment.