[PATCH 5.10 004/452] riscv: Initialize thread pointer before calling C functions