Skip to content
Commit 6b641c34 authored by Conor Paxton's avatar Conor Paxton Committed by Lauren Murphy
Browse files

drivers: timer: get mtime cmp reg by reading mhartid



It is not guaranteed that a multi-core RISC-V hart numbering scheme
will match Zephyr's sequential cpu numbering scheme. Read the hartid and
use that value in calculation to get mtime_cmp reg, instead of the
current_cpu id.

Signed-off-by: default avatarConor Paxton <conor.paxton@microchip.com>
parent 343d1919
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment