[libc-commits] [PATCH] D145452: [libc] Add riscv64 syscall implementation.

Jessica Clarke via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Mar 6 18:42:40 PST 2023


jrtc27 added inline comments.


================
Comment at: libc/src/__support/OSUtil/linux/riscv64/syscall.h:43
+#define SYSCALL_INSTR(input_constraint)                                        \
+  LIBC_INLINE_ASM("ecall\n\t" : "=r"(a0) : input_constraint : "memory", "cc")
+
----------------
What condition codes?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145452/new/

https://reviews.llvm.org/D145452



More information about the libc-commits mailing list