Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 May 2015 12:44:02 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r282767 - head/sys/arm/include
Message-ID:  <201505111244.t4BCi3Nk034734@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Mon May 11 12:44:02 2015
New Revision: 282767
URL: https://svnweb.freebsd.org/changeset/base/282767

Log:
  cpu-v6.h should only be used in the kernel, add an error to enforce this.

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

Modified: head/sys/arm/include/cpu-v6.h
==============================================================================
--- head/sys/arm/include/cpu-v6.h	Mon May 11 10:07:31 2015	(r282766)
+++ head/sys/arm/include/cpu-v6.h	Mon May 11 12:44:02 2015	(r282767)
@@ -29,6 +29,11 @@
 #ifndef MACHINE_CPU_V6_H
 #define MACHINE_CPU_V6_H
 
+/* There are no user serviceable parts here, they may change without notice */
+#ifndef _KERNEL
+#error Only include this file in the kernel
+#else
+
 #include "machine/atomic.h"
 #include "machine/cpufunc.h"
 #include "machine/cpuinfo.h"
@@ -499,4 +504,6 @@ cp15_ttbr_set(uint32_t reg)
 	tlb_flush_all_ng_local();
 }
 
+#endif /* _KERNEL */
+
 #endif /* !MACHINE_CPU_V6_H */



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