summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-09-29 18:53:59 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-09-29 18:53:59 +0000
commit7a19818ca235f8dd2b118567be3ec3d0ea30b9e2 (patch)
tree96073c1015eb01be8fbdb22c86c64c457627650d /sys/dev/pci
parent0565b4ad35c19c3cf83459ac0cf64d39998b1da2 (diff)
fix the dc_cacheline to 16 on hppa
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_dc_pci.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/pci/if_dc_pci.c b/sys/dev/pci/if_dc_pci.c
index d5ef5b1be82..51947113dc0 100644
--- a/sys/dev/pci/if_dc_pci.c
+++ b/sys/dev/pci/if_dc_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_dc_pci.c,v 1.39 2003/08/16 14:42:19 henning Exp $ */
+/* $OpenBSD: if_dc_pci.c,v 1.40 2003/09/29 18:53:58 mickey Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -448,9 +448,13 @@ void dc_pci_attach(parent, self, aux)
/* Save the cache line size. */
if (DC_IS_DAVICOM(sc))
sc->dc_cachesize = 0;
- else
+ else {
sc->dc_cachesize = pci_conf_read(pc, pa->pa_tag,
DC_PCI_CFLT) & 0xFF;
+#ifdef __hppa__
+ sc->dc_cachesize = 16;
+#endif
+ }
/* Reset the adapter. */
dc_reset(sc);