Module Name: src Committed By: thorpej Date: Thu Sep 3 22:56:11 UTC 2020
Modified Files: src/sys/arch/alpha/include: param.h Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 src/sys/arch/alpha/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/alpha/include/param.h diff -u src/sys/arch/alpha/include/param.h:1.45 src/sys/arch/alpha/include/param.h:1.46 --- src/sys/arch/alpha/include/param.h:1.45 Mon Jan 7 22:00:30 2019 +++ src/sys/arch/alpha/include/param.h Thu Sep 3 22:56:11 2020 @@ -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