Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jan 2015 03:59:04 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r276808 - head/sys/arm/include
Message-ID:  <201501080359.t083x4Hr007091@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)
 {



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