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)
 {
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to