summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2016-03-02 23:50:33 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2016-03-02 23:50:33 +0000
commit85963fa9336f24159f9ee0f5ef70f77adbabe6df (patch)
tree42d91165a43580648f0c83f55e9e2ca43202eb56
parenteea414de844bf8b8da1c4e9ecd82401f5ae2f3d0 (diff)
set armv7 callbacks for cortex a53/a52/a72
from Patrick Wildt who tested this on cortex a53
-rw-r--r--sys/arch/arm/arm/cpufunc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/arm/arm/cpufunc.c b/sys/arch/arm/arm/cpufunc.c
index aab8bc63659..f549e619797 100644
--- a/sys/arch/arm/arm/cpufunc.c
+++ b/sys/arch/arm/arm/cpufunc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpufunc.c,v 1.27 2015/05/29 05:48:07 jsg Exp $ */
+/* $OpenBSD: cpufunc.c,v 1.28 2016/03/02 23:50:32 jsg Exp $ */
/* $NetBSD: cpufunc.c,v 1.65 2003/11/05 12:53:15 scw Exp $ */
/*
@@ -1003,7 +1003,10 @@ set_cpufuncs()
(cputype & CPU_ID_CORTEX_A8_MASK) == CPU_ID_CORTEX_A8 ||
(cputype & CPU_ID_CORTEX_A9_MASK) == CPU_ID_CORTEX_A9 ||
(cputype & CPU_ID_CORTEX_A15_MASK) == CPU_ID_CORTEX_A15 ||
- (cputype & CPU_ID_CORTEX_A17_MASK) == CPU_ID_CORTEX_A17) {
+ (cputype & CPU_ID_CORTEX_A17_MASK) == CPU_ID_CORTEX_A17 ||
+ (cputype & CPU_ID_CORTEX_A53_MASK) == CPU_ID_CORTEX_A53 ||
+ (cputype & CPU_ID_CORTEX_A57_MASK) == CPU_ID_CORTEX_A57 ||
+ (cputype & CPU_ID_CORTEX_A72_MASK) == CPU_ID_CORTEX_A72) {
cpufuncs = armv7_cpufuncs;
cpu_reset_needs_v4_MMU_disable = 1; /* V4 or higher */
arm_get_cachetype_cp15v7();