[PATCH v2 1/1] riscv: restore global data pointer in trap handler