[PATCH 1/5] riscv: import read/write_relaxed functions