summaryrefslogtreecommitdiffstats
path: root/sys/arch/arm/cortex/cortex.c
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2013-08-06 14:21:13 +0000
committerpatrick <patrick@openbsd.org>2013-08-06 14:21:13 +0000
commit8ff1d18e94b02421c6ff162736c168a416ba16f6 (patch)
treef1b373302865817ae705b2dcb303e71f8898d2c9 /sys/arch/arm/cortex/cortex.c
parentAttach amptimer only on Cortex-A9, as all Cortex-A8 doesn't have a generic (diff)
downloadwireguard-openbsd-8ff1d18e94b02421c6ff162736c168a416ba16f6.tar.xz
wireguard-openbsd-8ff1d18e94b02421c6ff162736c168a416ba16f6.zip
The Cortex bus should be useful for Cortex-A7, too.
ok rapha@ jsg@
Diffstat (limited to 'sys/arch/arm/cortex/cortex.c')
-rw-r--r--sys/arch/arm/cortex/cortex.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/arm/cortex/cortex.c b/sys/arch/arm/cortex/cortex.c
index d01c4ddb040..464b88a79bd 100644
--- a/sys/arch/arm/cortex/cortex.c
+++ b/sys/arch/arm/cortex/cortex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cortex.c,v 1.1 2013/05/01 00:16:26 patrick Exp $ */
+/* $OpenBSD: cortex.c,v 1.2 2013/08/06 14:21:13 patrick Exp $ */
/* $NetBSD: mainbus.c,v 1.3 2001/06/13 17:52:43 nathanw Exp $ */
/*
@@ -98,7 +98,8 @@ cortexmatch(struct device *parent, void *cf, void *aux)
{
int cputype = cpufunc_id();
- if ((cputype & CPU_ID_CORTEX_A9_MASK) == CPU_ID_CORTEX_A9 ||
+ if ((cputype & CPU_ID_CORTEX_A7_MASK) == CPU_ID_CORTEX_A7 ||
+ (cputype & CPU_ID_CORTEX_A9_MASK) == CPU_ID_CORTEX_A9 ||
(cputype & CPU_ID_CORTEX_A15_MASK) == CPU_ID_CORTEX_A15) {
if (armv7_periphbase())
return (1);