diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-05 20:57:05 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-05 20:57:05 +0000 |
commit | 368552036fe6029364e1abc2351955db681286fc (patch) | |
tree | b3e9a57702ccbbcd0869d57d84ba28c1e1033e05 /sys/arch/sparc/include | |
parent | e64b8c0b9c88452904cfa97be25cfec4e21e04ce (diff) |
Get rid of CLSIZE and all related stuff.
CLSIZE -> 1
CLBYTES -> PAGE_SIZE
OLOFSET -> PAGE_MASK
etc.
At the same time some archs needed some cleaning in vmparam.h so that
goes in at the same time.
Diffstat (limited to 'sys/arch/sparc/include')
-rw-r--r-- | sys/arch/sparc/include/param.h | 12 | ||||
-rw-r--r-- | sys/arch/sparc/include/vmparam.h | 4 |
2 files changed, 6 insertions, 10 deletions
diff --git a/sys/arch/sparc/include/param.h b/sys/arch/sparc/include/param.h index f0f3ff99afa..f7ef8e11e70 100644 --- a/sys/arch/sparc/include/param.h +++ b/sys/arch/sparc/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.16 2001/01/15 23:23:58 jason Exp $ */ +/* $OpenBSD: param.h,v 1.17 2001/05/05 20:56:52 art Exp $ */ /* $NetBSD: param.h,v 1.29 1997/03/10 22:50:37 pk Exp $ */ /* @@ -101,16 +101,12 @@ extern int nbpg, pgofset, pgshift; #define BLKDEV_IOSIZE 2048 #define MAXPHYS (64 * 1024) -#define CLSIZE 1 -#define CLSIZELOG2 0 - -/* NOTE: SSIZE must be multiple of CLSIZE */ #define SSIZE 1 /* initial stack size in pages */ #define USPACE 8192 /* * Constants related to network buffer management. - * MCLBYTES must be no larger than CLBYTES (the software page size), and, + * MCLBYTES must be no larger than the software page size, and, * on machines that exchange pages of input or output buffers with mbuf * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple * of the hardware page size. @@ -131,10 +127,10 @@ extern int nbpg, pgofset, pgshift; #define MSGBUFSIZE 4096 /* cannot be changed without great pain */ /* - * Size of kernel malloc arena in CLBYTES-sized logical pages. + * Size of kernel malloc arena in logical pages. */ #ifndef NKMEMCLUSTERS -#define NKMEMCLUSTERS (6 * 1024 * 1024 / CLBYTES) +#define NKMEMCLUSTERS (6 * 1024 * 1024 / PAGE_SIZE) #endif /* pages ("clicks") to disk blocks */ diff --git a/sys/arch/sparc/include/vmparam.h b/sys/arch/sparc/include/vmparam.h index 02eb31cb076..1f80f122a19 100644 --- a/sys/arch/sparc/include/vmparam.h +++ b/sys/arch/sparc/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.15 2001/01/15 23:23:58 jason Exp $ */ +/* $OpenBSD: vmparam.h,v 1.16 2001/05/05 20:56:52 art Exp $ */ /* $NetBSD: vmparam.h,v 1.13 1997/07/12 16:20:03 perry Exp $ */ /* @@ -144,7 +144,7 @@ /* virtual sizes (bytes) for various kernel submaps */ #define VM_MBUF_SIZE (NMBCLUSTERS*MCLBYTES) -#define VM_KMEM_SIZE (NKMEMCLUSTERS*CLBYTES) +#define VM_KMEM_SIZE (NKMEMCLUSTERS*PAGE_SIZE) #define MACHINE_NEW_NONCONTIG |