[PATCH openEuler-5.10 003/427] riscv: Initialize thread pointer before calling C functions