For systems which are emulated, Mantle is the hardware abstraction layer and supervisory kernel employed by the Kestrel-2EX to communicate with the emulator.
For systems which are native hardware, Mantle is a software component that runs in machine-mode on the RISC-V processor, offering a set of services compatible by definition to those found in the emulator.
a0 through a6. You load a function number into a7, then execute ecall. Results, if any, will be supplied in registers a0 through a2.