summaryrefslogtreecommitdiff
path: root/sys/arch/m88k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-05-15 21:52:46 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-05-15 21:52:46 +0000
commit621ec2d211738693c3051bd58f518d39aabd111b (patch)
tree9d2d09d27b2dc88e47fc5bd084d592039b3d28da /sys/arch/m88k
parent173eb6afe5819a3c0582841091b7b6134fb6decf (diff)
Fix CMMU_CSSP(n) value.
Makes 88204 systems happier - yet they were working before.
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r--sys/arch/m88k/include/m8820x.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/m88k/include/m8820x.h b/sys/arch/m88k/include/m8820x.h
index f37cd64767c..f110e0919d3 100644
--- a/sys/arch/m88k/include/m8820x.h
+++ b/sys/arch/m88k/include/m8820x.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: m8820x.h,v 1.3 2004/08/06 13:23:49 miod Exp $ */
+/* $OpenBSD: m8820x.h,v 1.4 2005/05/15 21:52:45 miod Exp $ */
/*
* Copyright (c) 2004, Miodrag Vallat.
*
@@ -84,7 +84,7 @@
#define CMMU_CTP2 (0x848 / 4) /* cache tag port 2 */
#define CMMU_CTP3 (0x84c / 4) /* cache tag port 3 */
#define CMMU_CSSP0 (0x880 / 4) /* cache set status register */
-#define CMMU_CSSP(n) (CMMU_CSSP0 + (n))
+#define CMMU_CSSP(n) ((0x880 + (n * 0x10)) / 4)
/* the following only exist on 88204 */
#define CMMU_CSSP1 (0x890 / 4) /* cache set status register */
#define CMMU_CSSP2 (0x8a0 / 4) /* cache set status register */