From: jsg Date: Wed, 20 May 2015 00:39:16 +0000 (+0000) Subject: ARM L2C driver is only relevant on Cortex-A9 machines. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c69d9998f2bf911bfe31fd4206b6210d988f2118;p=openbsd ARM L2C driver is only relevant on Cortex-A9 machines. From Patrick Wildt in bitrig. --- 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