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

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Mar 6 19:50:03 PST 2023


sivachandra 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")
+
----------------
jrtc27 wrote:
> What condition codes?
Thanks for catching - it was a copy-paste remnant which I have now removed.


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