Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Oct 2017 13:43:16 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r324363 - head/sys/arm/include
Message-ID:  <201710061343.v96DhGMK082021@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Fri Oct  6 13:43:16 2017
New Revision: 324363
URL: https://svnweb.freebsd.org/changeset/base/324363

Log:
  Oversight on armv7 bulk commit: Make MACHINE_ARCH be armv7 for new
  enough processors. This isn't ideal, because one could still compile
  MACHINE_ARCH armv6, but with armv7 options enabled. We don't normally
  do that, and it's a bit of an edge case so accept the less than ideal
  solution here in the absence of something better.
  
  Reported by: strejda@
  Sponsored by: Netflix

Modified:
  head/sys/arm/include/param.h

Modified: head/sys/arm/include/param.h
==============================================================================
--- head/sys/arm/include/param.h	Fri Oct  6 12:31:55 2017	(r324362)
+++ head/sys/arm/include/param.h	Fri Oct  6 13:43:16 2017	(r324363)
@@ -52,10 +52,12 @@
 
 #define __PCI_REROUTE_INTERRUPT
 
-#if __ARM_ARCH >= 6
-#define	_V6_SUFFIX "v6"
+#if __ARM_ARCH >= 7
+#define	_V_SUFFIX "v7"
+#elif __ARM_ARCH >= 6
+#define	_V_SUFFIX "v6"
 #else
-#define	_V6_SUFFIX ""
+#define	_V_SUFFIX ""
 #endif
 
 #ifdef __ARM_BIG_ENDIAN
@@ -68,7 +70,7 @@
 #define	MACHINE		"arm"
 #endif
 #ifndef MACHINE_ARCH
-#define	MACHINE_ARCH	"arm" _V6_SUFFIX _EB_SUFFIX
+#define	MACHINE_ARCH	"arm" _V_SUFFIX _EB_SUFFIX
 #endif
 
 #if defined(SMP) || defined(KLD_MODULE)



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