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

riscv: isr.S: dedicate a register to &current_cpu



Stop using &_kernel as this is not SMP friendly. Let's use s0 (after
preserving its content) to hold &current_cpu instead so it won't have
to be reloaded 	each time it is needed. This will be even more relevant
when SMP support is added.

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