From 56fbb245cd3d5ff45714de62afaa4e91e7bb8b9e Mon Sep 17 00:00:00 2001 From: Wesley Moore <wes@wezm.net> Date: Sun, 9 Feb 2025 11:21:38 +1000 Subject: [PATCH] Add note on RV32E syscalls --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 69b4c3a..2269796 100644 --- a/README.md +++ b/README.md @@ -18,5 +18,11 @@ Resources * [CH32V003 Datasheet](https://www.wch-ic.com/downloads/CH32V003RM_PDF.html) * [QingKeV2 Processor Manual](https://www.wch-ic.com/downloads/QingKeV2_Processor_Manual_PDF.html) — core used in the CH32V003 +### Syscalls on RV32E + +Consensus seems to be pass the syscall number in `t0`: + +* https://github.com/riscvarchive/riscv-qemu/pull/61 +* https://github.com/sysprog21/rv32emu/blob/1286b3c41eec541b68f3d25462722ba848bf4e51/src/syscall.c#L484 [CH32V003]: https://www.wch-ic.com/products/CH32V003.html