svn commit: r276312 - stable/10/sys/arm/include

Ian Lepore ian at FreeBSD.org
Sat Dec 27 17:36:50 UTC 2014


Author: ian
Date: Sat Dec 27 17:36:49 2014
New Revision: 276312
URL: https://svnweb.freebsd.org/changeset/base/276312

Log:
  MFC r276165, r276166:
  
    Define the old-school arm arch constants we still use internally based on
    the somewhat newer constants predefined by the compiler.  This will allow
    userland apps to use various machine/foo.h headers without CPUTYPE defined.

Modified:
  stable/10/sys/arm/include/cpuconf.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/arm/include/cpuconf.h
==============================================================================
--- stable/10/sys/arm/include/cpuconf.h	Sat Dec 27 17:20:24 2014	(r276311)
+++ stable/10/sys/arm/include/cpuconf.h	Sat Dec 27 17:36:49 2014	(r276312)
@@ -99,6 +99,29 @@
 #endif
 
 #define	ARM_NARCH	(ARM_ARCH_4 + ARM_ARCH_5 + ARM_ARCH_6 | ARM_ARCH_7A)
+
+/*
+ * Compatibility for userland builds that have no CPUTYPE defined.  Use the ARCH
+ * constants predefined by the compiler to define our old-school arch constants.
+ * This is a stopgap measure to tide us over until the conversion of all code
+ * to the newer ACLE constants defined by ARM (see acle-compat.h).
+ */
+#if ARM_NARCH == 0
+#if defined(__ARM_ARCH_4T__)
+#undef  ARM_ARCH_4
+#undef  ARM_NARCH
+#define ARM_ARCH_4 1
+#define ARM_NARCH  1
+#define CPU_ARM9 1
+#elif defined(__ARM_ARCH_6ZK__)
+#undef  ARM_ARCH_6
+#undef  ARM_NARCH
+#define ARM_ARCH_6 1
+#define ARM_NARCH  1
+#define CPU_ARM1176 1
+#endif
+#endif
+
 #if ARM_NARCH == 0 && !defined(KLD_MODULE) && defined(_KERNEL)
 #error ARM_NARCH is 0
 #endif


More information about the svn-src-stable mailing list