summaryrefslogtreecommitdiffstats
path: root/sys/arm/include
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2016-05-23 20:07:17 +0000
committerian <ian@FreeBSD.org>2016-05-23 20:07:17 +0000
commit2308d1c5003857c02e42a778c3c84078ae6d547a (patch)
tree443834c682bc53cb79fa21a83c790c5cfb515862 /sys/arm/include
parent8e70fac078394cfbca0599afd2bd5cda07a8ad51 (diff)
downloadFreeBSD-src-2308d1c5003857c02e42a778c3c84078ae6d547a.zip
FreeBSD-src-2308d1c5003857c02e42a778c3c84078ae6d547a.tar.gz
Use the new(-ish) CP15_SCTLR macro to generate system control reg accesses
where possible. In the places that doesn't work (multi-line inline asm, and places where the old armv4 cpufuncs mechanism is used), annotate the accesses with a comment that includes SCTLR. Now a grep -i sctlr can find all the system control register manipulations. No functional changes.
Diffstat (limited to 'sys/arm/include')
-rw-r--r--sys/arm/include/cpu-v4.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/arm/include/cpu-v4.h b/sys/arm/include/cpu-v4.h
index 0d66dee..606a4be 100644
--- a/sys/arm/include/cpu-v4.h
+++ b/sys/arm/include/cpu-v4.h
@@ -105,6 +105,7 @@ _RF0(cp15_midr_get, CP15_MIDR(%0))
_RF0(cp15_ctr_get, CP15_CTR(%0))
_RF0(cp15_tcmtr_get, CP15_TCMTR(%0))
_RF0(cp15_tlbtr_get, CP15_TLBTR(%0))
+_RF0(cp15_sctlr_get, CP15_SCTLR(%0))
#undef _FX
#undef _RF0
OpenPOWER on IntegriCloud