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