svn commit: r276808 - head/sys/arm/include

Ian Lepore ian at FreeBSD.org
Thu Jan 8 03:59:04 UTC 2015


Author: ian
Date: Thu Jan  8 03:59:03 2015
New Revision: 276808
URL: https://svnweb.freebsd.org/changeset/base/276808

Log:
  Move the inclusion of cpu-v6.h inside the #ifdef _KERNEL block, so that
  userland programs (which probably don't actually need machine/cpu.h) compile.

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

Modified: head/sys/arm/include/cpu.h
==============================================================================
--- head/sys/arm/include/cpu.h	Thu Jan  8 03:44:54 2015	(r276807)
+++ head/sys/arm/include/cpu.h	Thu Jan  8 03:59:03 2015	(r276808)
@@ -8,14 +8,13 @@
 #include <machine/armreg.h>
 #include <machine/frame.h>
 
-#if __ARM_ARCH >= 6
-#include <machine/cpu-v6.h>
-#endif
-
 void	cpu_halt(void);
 void	swi_vm(void *);
 
 #ifdef _KERNEL
+#if __ARM_ARCH >= 6
+#include <machine/cpu-v6.h>
+#endif
 static __inline uint64_t
 get_cyclecount(void)
 {


More information about the svn-src-head mailing list