1 stable release

1.0.2 Sep 12, 2023
1.0.1 Aug 30, 2023

#620 in Embedded development

25 downloads per month
Used in 7 crates (2 directly)

AGPL-3.0-or-later

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.

No runtime deps