diff options
author | 2016-03-02 23:50:32 +0000 | |
---|---|---|
committer | 2016-03-02 23:50:32 +0000 | |
commit | 1af34eed3bd441a17128987f307c24f0980ed184 (patch) | |
tree | 35fb164db6455b98f7e34a381a106f0acbfed9fb | |
parent | fix the name of the define for the a72 mask (diff) | |
download | wireguard-openbsd-1af34eed3bd441a17128987f307c24f0980ed184.tar.xz wireguard-openbsd-1af34eed3bd441a17128987f307c24f0980ed184.zip |
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.c | 7 |
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(); |