Skip to content

Commit 4a8ca72

Browse files
committed
spec/ecall: reintroduce ecall-number overview
1 parent dd7b6ec commit 4a8ca72

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

spec/about_ecalls.typ

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,13 @@ When `ECALL` is executed, it is assumed that:
2222
- the return value is written to `A0`,
2323
where `A0`-`A7` are symbolic names for the registers `x10`-`x17`
2424
#footnote([RISC-V - Register sets; en.wikipedia.org, #link("https://web.archive.org/web/20260209053447/https://en.wikipedia.org/wiki/RISC-V#Register_sets")[[src]]]).
25+
26+
= ECALL number overview
27+
28+
We provide a list of supported ECALL numbers.
29+
Negative numbers (represented as 2s complement 64-bit numbers), are used for our own custom accelerators/extensions.
30+
31+
/ 64: `write` (@commit)
32+
/ 93: `exit` (@halt)
33+
/ -1: `SHA256` (@sha256)
34+
/ -2: `KECCAK` (@keccak)

0 commit comments

Comments
 (0)