Skip to content
Commit af2d875c authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Anas Nashif
Browse files

riscv: isr.S: compute _current_cpu using CPU number on SMP



To do so efficiently on systems without the mul instruction, we use
shifts and adds which is faster and sometimes smaller than a plain loop.

Signed-off-by: default avatarNicolas Pitre <npitre@baylibre.com>
parent 4f537485
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment