artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30a044c
)
ARM L2C driver is only relevant on Cortex-A9 machines.
author
jsg
<jsg@openbsd.org>
Wed, 20 May 2015 00:39:16 +0000
(
00:39
+0000)
committer
jsg
<jsg@openbsd.org>
Wed, 20 May 2015 00:39:16 +0000
(
00:39
+0000)
From Patrick Wildt in bitrig.
sys/arch/arm/cortex/arml2cc.c
patch
|
blob
|
history
diff --git
a/sys/arch/arm/cortex/arml2cc.c
b/sys/arch/arm/cortex/arml2cc.c
index
0bda681
..
1ce1354
100644
(file)
--- 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 <patrick@blueri.se>
*
@@
-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