svn commit: r364349 - head/sys/riscv/riscv
Nick O'Brien
nick at FreeBSD.org
Tue Aug 18 16:51:05 UTC 2020
Author: nick
Date: Tue Aug 18 16:51:04 2020
New Revision: 364349
URL: https://svnweb.freebsd.org/changeset/base/364349
Log:
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
Modified:
head/sys/riscv/riscv/identcpu.c
Modified: head/sys/riscv/riscv/identcpu.c
==============================================================================
--- head/sys/riscv/riscv/identcpu.c Tue Aug 18 16:06:16 2020 (r364348)
+++ head/sys/riscv/riscv/identcpu.c Tue Aug 18 16:51:04 2020 (r364349)
@@ -186,15 +186,13 @@ identify_cpu(void)
const struct cpu_parts *cpu_partsp;
uint32_t part_id;
uint32_t impl_id;
- uint64_t mimpid;
uint64_t misa;
u_int cpu;
size_t i;
cpu_partsp = NULL;
- /* TODO: can we get mimpid and misa somewhere ? */
- mimpid = 0;
+ /* TODO: can we get misa somewhere ? */
misa = 0;
cpu = PCPU_GET(cpuid);
More information about the svn-src-all
mailing list