riscv: Use global mimpid in identify_cpu()
sbi_init() sets mimpid, we can use that value. Reviewed by: philip (mentor), kp (mentor) Approved by: philip (mentor), kp (mentor) Sponsored by: Axiado Differential Revision: https://reviews.freebsd.org/D26092
This commit is contained in:
parent
f1f3f7cf0b
commit
bdc3ee3546
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=364349
@ -186,15 +186,13 @@ identify_cpu(void)
|
|||||||
const struct cpu_parts *cpu_partsp;
|
const struct cpu_parts *cpu_partsp;
|
||||||
uint32_t part_id;
|
uint32_t part_id;
|
||||||
uint32_t impl_id;
|
uint32_t impl_id;
|
||||||
uint64_t mimpid;
|
|
||||||
uint64_t misa;
|
uint64_t misa;
|
||||||
u_int cpu;
|
u_int cpu;
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
cpu_partsp = NULL;
|
cpu_partsp = NULL;
|
||||||
|
|
||||||
/* TODO: can we get mimpid and misa somewhere ? */
|
/* TODO: can we get misa somewhere ? */
|
||||||
mimpid = 0;
|
|
||||||
misa = 0;
|
misa = 0;
|
||||||
|
|
||||||
cpu = PCPU_GET(cpuid);
|
cpu = PCPU_GET(cpuid);
|
||||||
|
Loading…
Reference in New Issue
Block a user