summaryrefslogtreecommitdiffstats
path: root/sys/arm/arm
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2017-03-02 01:18:46 +0000
committerian <ian@FreeBSD.org>2017-03-02 01:18:46 +0000
commitacd168923c104fa26f6d48db142fa778b5cbc7b1 (patch)
tree7dbce221b266c2dea6e55c2c4c0bcfcbf09a7b46 /sys/arm/arm
parent15dbec6aad227bffd6f15e2b6dd76a618e2528b2 (diff)
downloadFreeBSD-src-acd168923c104fa26f6d48db142fa778b5cbc7b1.zip
FreeBSD-src-acd168923c104fa26f6d48db142fa778b5cbc7b1.tar.gz
MFC r312292, r313573:
Stop including sys/types.h from arm's machine/atomic.h, fix the places where atomic.h was being included without ensuring that types.h (via param.h) was included first, as required by atomic(9). Remove arm's cpuconf.h, and references to it, after moving a few lines from it into pmap-v4.h where they are used. Other than those few lines of support for different MMU types, nothing in cpuconf.h has been used in our code for quite a while. The file existed to set up a variety of symbols to describe the architecture. Over the past few years we have converted all of our source to use the new architecture symbols standardized by ARM Inc, and predefined by both clang and gcc.
Diffstat (limited to 'sys/arm/arm')
-rw-r--r--sys/arm/arm/bus_space_asm_generic.S1
-rw-r--r--sys/arm/arm/cpufunc.c1
-rw-r--r--sys/arm/arm/identcpu-v4.c3
-rw-r--r--sys/arm/arm/identcpu-v6.c2
-rw-r--r--sys/arm/arm/locore-v4.S1
-rw-r--r--sys/arm/arm/locore-v6.S1
-rw-r--r--sys/arm/arm/stack_machdep.c2
7 files changed, 3 insertions, 8 deletions
diff --git a/sys/arm/arm/bus_space_asm_generic.S b/sys/arm/arm/bus_space_asm_generic.S
index 9d2b11d..711f921 100644
--- a/sys/arm/arm/bus_space_asm_generic.S
+++ b/sys/arm/arm/bus_space_asm_generic.S
@@ -36,7 +36,6 @@
*/
#include <machine/asm.h>
-#include <machine/cpuconf.h>
__FBSDID("$FreeBSD$");
/*
diff --git a/sys/arm/arm/cpufunc.c b/sys/arm/arm/cpufunc.c
index eb5c5a1..aae8dc0 100644
--- a/sys/arm/arm/cpufunc.c
+++ b/sys/arm/arm/cpufunc.c
@@ -57,7 +57,6 @@ __FBSDID("$FreeBSD$");
#include <vm/pmap.h>
#include <vm/uma.h>
-#include <machine/cpuconf.h>
#include <machine/cpufunc.h>
#if defined(CPU_XSCALE_81342)
diff --git a/sys/arm/arm/identcpu-v4.c b/sys/arm/arm/identcpu-v4.c
index 46f4843..769f0b3 100644
--- a/sys/arm/arm/identcpu-v4.c
+++ b/sys/arm/arm/identcpu-v4.c
@@ -43,15 +43,14 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include <sys/systm.h>
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/conf.h>
#include <sys/kernel.h>
#include <sys/sysctl.h>
#include <machine/cpu.h>
#include <machine/endian.h>
-#include <machine/cpuconf.h>
#include <machine/md_var.h>
char machine[] = "arm";
diff --git a/sys/arm/arm/identcpu-v6.c b/sys/arm/arm/identcpu-v6.c
index 55d331c..7cc8170 100644
--- a/sys/arm/arm/identcpu-v6.c
+++ b/sys/arm/arm/identcpu-v6.c
@@ -43,8 +43,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include <sys/systm.h>
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/conf.h>
#include <sys/kernel.h>
#include <sys/sysctl.h>
diff --git a/sys/arm/arm/locore-v4.S b/sys/arm/arm/locore-v4.S
index bd39ae1..afba08e 100644
--- a/sys/arm/arm/locore-v4.S
+++ b/sys/arm/arm/locore-v4.S
@@ -37,7 +37,6 @@
#include <sys/syscall.h>
#include <machine/asm.h>
#include <machine/armreg.h>
-#include <machine/cpuconf.h>
#include <machine/pte-v4.h>
__FBSDID("$FreeBSD$");
diff --git a/sys/arm/arm/locore-v6.S b/sys/arm/arm/locore-v6.S
index cdca461..fabe450 100644
--- a/sys/arm/arm/locore-v6.S
+++ b/sys/arm/arm/locore-v6.S
@@ -34,7 +34,6 @@
#include <machine/asmacros.h>
#include <machine/armreg.h>
#include <machine/sysreg.h>
-#include <machine/cpuconf.h>
#include <machine/pte-v6.h>
__FBSDID("$FreeBSD$");
diff --git a/sys/arm/arm/stack_machdep.c b/sys/arm/arm/stack_machdep.c
index 6d23be6..df232a9 100644
--- a/sys/arm/arm/stack_machdep.c
+++ b/sys/arm/arm/stack_machdep.c
@@ -27,8 +27,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include <sys/systm.h>
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/proc.h>
#include <sys/stack.h>
OpenPOWER on IntegriCloud