kernel: userspace: Fix dynamic thread stack allocation for RISC-V

RISC-V use the same logic for dynamic thread stacks allocation as ARM.
This fixup reuses ARM code.

Signed-off-by: Rick Tsao <rick592@andestech.com>
1 file changed