|
|
|
|
|
by brucehoult
839 days ago
|
|
If you're already familiar with arm64 assembly language then just read the RISC-V ISA manual. It's short and simple. https://riscv.org/technical/specifications/ riscv64 Linux syscall numbers are the same as arm64 ones. Just put the syscall number into `a7` instead of `x8`. And args in `a0`..`a3`, obv. Use `ecall` instead of `svc 0`. Boom! |
|