riscv: native arch_proc_id() implementation

Return the hardware hartid value directly.

Redefine arch_curr_cpu() in terms of arch_proc_id() to remove
the hartid reading duplication. The code assumed a linear hartid
space already so add a comment to that effect.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
1 file changed