Commit b94396c7 authored by Samuel Holland's avatar Samuel Holland Committed by Anup Patel
Browse files

lib: utils/timer: Optimize current hart scratch access



The address of the local scratch area is stored in each hart's mscratch
CSR. It is more efficient to read the CSR than to compute the address
from the hart ID.

Signed-off-by: default avatarSamuel Holland <samuel.holland@sifive.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
parent 5c9a7356
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment