summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-03-15 17:55:32 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-03-15 17:55:32 +0000
commita9e9c81ae2c8a9b407090d162575dda6f66caa91 (patch)
treec95b439f1af1b99bd62902e7d7223ccf13ff33db /sys/arch
parent8f47d4ed71d336a97dc200eea998754eaeecdf93 (diff)
on cypress, disable write caching for now
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc/sparc/cache.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/sparc/sparc/cache.c b/sys/arch/sparc/sparc/cache.c
index 7920700f09b..00f9fba5bd6 100644
--- a/sys/arch/sparc/sparc/cache.c
+++ b/sys/arch/sparc/sparc/cache.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cache.c,v 1.5 1999/03/03 22:02:21 jason Exp $ */
+/* $OpenBSD: cache.c,v 1.6 1999/03/15 17:55:31 deraadt Exp $ */
/* $NetBSD: cache.c,v 1.33 1997/07/29 09:41:56 fair Exp $ */
/*
@@ -272,9 +272,15 @@ cypress_cache_enable()
sta(i, ASI_DCACHETAG, 0);
pcr |= CYPRESS_PCR_CE;
+
+#if 1
+ pcr &= ~CYPRESS_PCR_CM; /* XXX Disable write-back mode */
+#else
/* If put in write-back mode, turn it on */
if (CACHEINFO.c_vactype == VAC_WRITEBACK)
pcr |= CYPRESS_PCR_CM;
+#endif
+
sta(SRMMU_PCR, ASI_SRMMU, pcr);
CACHEINFO.c_enabled = 1;
printf("cache enabled\n");