From 46ceef1fad9505d1765ee95c45085971229f18df Mon Sep 17 00:00:00 2001 From: dyson Date: Sun, 24 May 1998 04:25:27 +0000 Subject: Support a 16K first level cache for 512K 2nd level. Also, add support for 1MB 2nd level cache. --- sys/vm/vm_page.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h index c80bfdd..51cbf76 100644 --- a/sys/vm/vm_page.h +++ b/sys/vm/vm_page.h @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_page.h,v 1.37 1998/03/01 04:18:26 dyson Exp $ + * $Id: vm_page.h,v 1.38 1998/03/07 21:37:15 dyson Exp $ */ /* @@ -126,12 +126,21 @@ struct vm_page { /* Each of PQ_FREE, PQ_ZERO and PQ_CACHE have PQ_HASH_SIZE entries */ /* Define one of the following */ +#if defined(PQ_HUGECACHE) +#define PQ_PRIME1 31 /* Prime number somewhat less than PQ_HASH_SIZE */ +#define PQ_PRIME2 23 /* Prime number somewhat less than PQ_HASH_SIZE */ +#define PQ_PRIME3 17 /* Prime number somewhat less than PQ_HASH_SIZE */ +#define PQ_L2_SIZE 256 /* A number of colors opt for 1M cache */ +#define PQ_L1_SIZE 4 /* Four page L1 cache */ +#endif + +/* Define one of the following */ #if defined(PQ_LARGECACHE) #define PQ_PRIME1 31 /* Prime number somewhat less than PQ_HASH_SIZE */ #define PQ_PRIME2 23 /* Prime number somewhat less than PQ_HASH_SIZE */ #define PQ_PRIME3 17 /* Prime number somewhat less than PQ_HASH_SIZE */ #define PQ_L2_SIZE 128 /* A number of colors opt for 512K cache */ -#define PQ_L1_SIZE 2 /* Two page L1 cache */ +#define PQ_L1_SIZE 4 /* Four page L1 cache (for PII) */ #endif -- cgit v1.1