svn commit: r282767 - head/sys/arm/include
Andrew Turner
andrew at FreeBSD.org
Mon May 11 12:44:03 UTC 2015
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 */
More information about the svn-src-all
mailing list