1 stable release
1.0.2 | Sep 12, 2023 |
---|---|
1.0.1 |
|
#763 in Embedded development
Used in 7 crates
(2 directly)
5KB
115 lines
Note for syscall registers usage (x86-64):
- %rax is the syscall number.
- %rax is also the return value.
- %rdi is the 1st argument.
- %rsi is the 2nd argument.
- %rdx is the 3rd argument.
- %r10 is the 4th argument (yes it's %r10, not %rcx!).
- %r8 is the 5th argument.
- %r9 is the 6th argument.
syscall
instruction will clobber %r11 and %rcx.