commit | 883e9d367f6cd489666a562c83df0f56458c94b2 | [log] [tgz] |
---|---|---|
author | Nicolas Pitre <npitre@baylibre.com> | Fri Jan 06 18:39:04 2023 -0500 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Thu Jan 19 13:48:42 2023 +0100 |
tree | 05718af30f600d49f9663ca460deca1d31b6b95e | |
parent | 26d7bd47a059663bc3104695d2cfbf2a48ff77a1 [diff] |
riscv: translate CPU numbers to hartid values for IPI Given the Zephyr CPU number is no longer tied to the hartid, we must consider the actual hartid when sending an IPI to a given CPU. Since those hartids can be anything, let's just save them in the cpu structure as each CPU is brought online. While at it, throw in some `get_hart_msip()` cleanups. Signed-off-by: Nicolas Pitre <npitre@baylibre.com>