summaryrefslogtreecommitdiffstats
path: root/sys/arm/include/cpuconf.h
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-09-09 18:17:43 +0000
committerian <ian@FreeBSD.org>2014-09-09 18:17:43 +0000
commitd8cb26ab278eddf76bb8636d47a82de9f18da67d (patch)
treed4854c2d7c248d7441a467d455b7b828b2f8a1e8 /sys/arm/include/cpuconf.h
parentc32d713587c9fe35966f0218ddbc7b31f43f31ce (diff)
downloadFreeBSD-src-d8cb26ab278eddf76bb8636d47a82de9f18da67d.zip
FreeBSD-src-d8cb26ab278eddf76bb8636d47a82de9f18da67d.tar.gz
MFC r270862, r270878: MMU fixes for kernel startup.
Fix the handling of MMU type in the AP entry code. The ARM_MMU_V6/V7 symbols are always #defined to 0 or 1, so use #if SYM not #if defined(SYM). Also, it helps if you include the header file that defines the symbols. The Marvell PJ4B cpu family is armv7, not armv6. Approved by: re(gjb)
Diffstat (limited to 'sys/arm/include/cpuconf.h')
-rw-r--r--sys/arm/include/cpuconf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arm/include/cpuconf.h b/sys/arm/include/cpuconf.h
index b7cad0d..1f0edba 100644
--- a/sys/arm/include/cpuconf.h
+++ b/sys/arm/include/cpuconf.h
@@ -135,13 +135,13 @@
#define ARM_MMU_GENERIC 0
#endif
-#if defined(CPU_ARM1136) || defined(CPU_ARM1176) || defined(CPU_MV_PJ4B)
+#if defined(CPU_ARM1136) || defined(CPU_ARM1176)
#define ARM_MMU_V6 1
#else
#define ARM_MMU_V6 0
#endif
-#if defined(CPU_CORTEXA) || defined(CPU_KRAIT)
+#if defined(CPU_CORTEXA) || defined(CPU_KRAIT) || defined(CPU_MV_PJ4B)
#define ARM_MMU_V7 1
#else
#define ARM_MMU_V7 0
OpenPOWER on IntegriCloud