riscv: implement sigaltstack
@@ -38,7 +38,7 @@ int main() {
#elif defined(__aarch64__)
asm volatile ("mov sp, %0\n\tstp x0, x1, [sp, #-16]!" :: "r"(uint64_t{0}));
#elif defined(__riscv) && __riscv_xlen == 64
- asm volatile ("unimp"); // TODO
+ asm volatile ("li sp, 0\n\tsd zero, 0(sp)");
#else
# error Unknown architecture
#endif
