commit | 052192f6b065bee66cdbd1ce8ab9b49719a293f0 | [log] [tgz] |
---|---|---|
author | Nicolas Pitre <npitre@baylibre.com> | Tue Jun 21 18:41:35 2022 -0400 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Wed Jun 22 11:35:02 2022 +0200 |
tree | 073ec2950d2a2de6acefae8d8f4fa5d7555a6586 | |
parent | 662cea46388b714d1546affea53d56c3d6562b38 [diff] |
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>