[PATCH 6.4 198/234] riscv: entry: set a0 = -ENOSYS only when syscall != -1