Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/alpha/include Define COHERENCY_UNIT and CACHE_LINE_...



details:   https://anonhg.NetBSD.org/src/rev/ac1fc197b3af
branches:  trunk
changeset: 943446:ac1fc197b3af
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Sep 03 22:56:11 2020 +0000

description:
Define COHERENCY_UNIT and CACHE_LINE_SIZE as 64, which is the primary cache
line size on EV6 / EV7.  This is also the default MI fallback definition,
but now we're not relying on that value.

diffstat:

 sys/arch/alpha/include/param.h |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 55a53122c7ea -r ac1fc197b3af sys/arch/alpha/include/param.h
--- a/sys/arch/alpha/include/param.h    Thu Sep 03 19:50:14 2020 +0000
+++ b/sys/arch/alpha/include/param.h    Thu Sep 03 22:56:11 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.45 2019/01/07 22:00:30 jdolecek Exp $ */
+/* $NetBSD: param.h,v 1.46 2020/09/03 22:56:11 thorpej Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -71,6 +71,13 @@
 #endif
 
 /*
+ * EV4 (21064) and EV5 (21164) have a 32-byte cache line size.
+ * EV6 (21264) and EV7 (21364) have a 64-byte cache line size.
+ */
+#define        COHERENCY_UNIT  64
+#define        CACHE_LINE_SIZE 64
+
+/*
  * Constants related to network buffer management.
  * MCLBYTES must be no larger than NBPG (the software page size), and,
  * on machines that exchange pages of input or output buffers with mbuf



Home | Main Index | Thread Index | Old Index