Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Aug 2020 16:51:04 +0000 (UTC)
From:      "Nick O'Brien" <nick@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r364349 - head/sys/riscv/riscv
Message-ID:  <202008181651.07IGp4ih092755@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008181651.07IGp4ih092755>