Skip to content
Commit 75c732f6 authored by Andrew Jones's avatar Andrew Jones
Browse files

riscv: Rewrite hartid_to_cpu in assembly



Some SBI HSM tests run without a stack being setup so they can't
run C code. Those tests still need to know the corresponding cpuid
for the hartid on which they are running. Give those tests
hartid_to_cpu() by reimplementing it in assembly.

Signed-off-by: default avatarJames Raphael Tiovalen <jamestiotio@gmail.com>
Signed-off-by: default avatarAndrew Jones <andrew.jones@linux.dev>
parent 67b8f462
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment