Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jul 2018 08:41:54 +0000 (UTC)
From:      Wojciech Macek <wma@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r336128 - in head/sys/arm64: arm64 include
Message-ID:  <201807090841.w698fssE073125@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wma
Date: Mon Jul  9 08:41:54 2018
New Revision: 336128
URL: https://svnweb.freebsd.org/changeset/base/336128

Log:
  ARM64: Add ThunderX2 CPU revision macro. Add ThunderX2 name in identcpu.c
  
  Submitted by:          Patryk Duda <pdk@semihalf.com>
  Obtained from:         Semihalf
  Sponsored by:          Cavium

Modified:
  head/sys/arm64/arm64/identcpu.c
  head/sys/arm64/include/cpu.h

Modified: head/sys/arm64/arm64/identcpu.c
==============================================================================
--- head/sys/arm64/arm64/identcpu.c	Mon Jul  9 08:37:55 2018	(r336127)
+++ head/sys/arm64/arm64/identcpu.c	Mon Jul  9 08:41:54 2018	(r336128)
@@ -134,6 +134,7 @@ static const struct cpu_parts cpu_parts_arm[] = {
 /* Cavium */
 static const struct cpu_parts cpu_parts_cavium[] = {
 	{ CPU_PART_THUNDERX, "ThunderX" },
+	{ CPU_PART_THUNDERX2, "ThunderX2" },
 	CPU_PART_NONE,
 };
 

Modified: head/sys/arm64/include/cpu.h
==============================================================================
--- head/sys/arm64/include/cpu.h	Mon Jul  9 08:37:55 2018	(r336127)
+++ head/sys/arm64/include/cpu.h	Mon Jul  9 08:41:54 2018	(r336128)
@@ -97,6 +97,8 @@
 #define	CPU_REV_THUNDERX_1_0	0x00
 #define	CPU_REV_THUNDERX_1_1	0x01
 
+#define	CPU_REV_THUNDERX2_0	0x00
+
 #define	CPU_IMPL(midr)	(((midr) >> 24) & 0xff)
 #define	CPU_PART(midr)	(((midr) >> 4) & 0xfff)
 #define	CPU_VAR(midr)	(((midr) >> 20) & 0xf)



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