Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips Missing in previous; set cache alias mask...
details: https://anonhg.NetBSD.org/src/rev/0b059a7fef99
branches: trunk
changeset: 484062:0b059a7fef99
user: soren <soren%NetBSD.org@localhost>
date: Fri Mar 24 18:15:41 2000 +0000
description:
Missing in previous; set cache alias mask properly on processors with
two-way set associative L1 caches.
diffstat:
sys/arch/mips/mips/mips_machdep.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r 24896919b9b0 -r 0b059a7fef99 sys/arch/mips/mips/mips_machdep.c
--- a/sys/arch/mips/mips/mips_machdep.c Fri Mar 24 17:05:30 2000 +0000
+++ b/sys/arch/mips/mips/mips_machdep.c Fri Mar 24 18:15:41 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mips_machdep.c,v 1.68 2000/03/19 19:16:14 soren Exp $ */
+/* $NetBSD: mips_machdep.c,v 1.69 2000/03/24 18:15:41 soren Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.68 2000/03/19 19:16:14 soren Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.69 2000/03/24 18:15:41 soren Exp $");
#include "opt_compat_netbsd.h"
#include "opt_compat_ultrix.h"
@@ -588,8 +588,12 @@
printf("L1 cache: %dKB/%dB Instruction, %dKB/%dB Data",
mips_L1ICacheSize / 1024, mips_L1ICacheLSize,
mips_L1DCacheSize / 1024, mips_L1DCacheLSize);
- if (mips3_L1TwoWayCache)
+ if (mips3_L1TwoWayCache) {
printf(", two way set associative");
+ /* One less alias bit with 2 way cache. */
+ mips_CacheAliasMask =
+ ((mips_L1DCacheSize/2) - 1) & ~(NBPG - 1);
+ }
else
printf(", direct mapped");
printf("\n");
Home |
Main Index |
Thread Index |
Old Index