From c69d9998f2bf911bfe31fd4206b6210d988f2118 Mon Sep 17 00:00:00 2001 From: jsg Date: Wed, 20 May 2015 00:39:16 +0000 Subject: [PATCH] ARM L2C driver is only relevant on Cortex-A9 machines. From Patrick Wildt in bitrig. --- sys/arch/arm/cortex/arml2cc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/arch/arm/cortex/arml2cc.c b/sys/arch/arm/cortex/arml2cc.c index 0bda681c424..1ce135469d4 100644 --- a/sys/arch/arm/cortex/arml2cc.c +++ b/sys/arch/arm/cortex/arml2cc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arml2cc.c,v 1.3 2013/06/14 23:58:30 patrick Exp $ */ +/* $OpenBSD: arml2cc.c,v 1.4 2015/05/20 00:39:16 jsg Exp $ */ /* * Copyright (c) 2013 Patrick Wildt * @@ -126,7 +126,10 @@ struct cfdriver armliicc_cd = { int arml2cc_match(struct device *parent, void *cfdata, void *aux) { - return (1); + if ((cpufunc_id() & CPU_ID_CORTEX_A9_MASK) == CPU_ID_CORTEX_A9) + return (1); + + return (0); } void -- 2.20.1