diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2001-12-10 01:05:29 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2001-12-10 01:05:29 +0000 |
commit | ba38727131150bb5ee5ae61df8d315ded024e57d (patch) | |
tree | 9bc12a58530f4544d999b4ccc9f579c6d471cd6b /sys/arch | |
parent | f834d2df7820abde37b65f29b2f866a4fb4449e7 (diff) |
Define MCLBYTES from MCLSHIFT, rather than providing the final value.
(sync with other arches)
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc/include/param.h | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/include/param.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc/include/param.h b/sys/arch/sparc/include/param.h index 805f1bca2bb..199b57afd6f 100644 --- a/sys/arch/sparc/include/param.h +++ b/sys/arch/sparc/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.21 2001/12/05 01:57:15 provos Exp $ */ +/* $OpenBSD: param.h,v 1.22 2001/12/10 01:05:27 miod Exp $ */ /* $NetBSD: param.h,v 1.29 1997/03/10 22:50:37 pk Exp $ */ /* @@ -112,8 +112,8 @@ extern int nbpg, pgofset, pgshift; * of the hardware page size. */ #define MSIZE 256 /* size of an mbuf */ -#define MCLBYTES 2048 /* enough for whole Ethernet packet */ #define MCLSHIFT 11 /* log2(MCLBYTES) */ +#define MCLBYTES (1 << MCLSHIFT) /* enough for whole Ethernet packet */ #define MCLOFSET (MCLBYTES - 1) #ifndef NMBCLUSTERS diff --git a/sys/arch/sparc64/include/param.h b/sys/arch/sparc64/include/param.h index 9f69ac797a4..fdade7ef560 100644 --- a/sys/arch/sparc64/include/param.h +++ b/sys/arch/sparc64/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.5 2001/12/05 01:57:15 provos Exp $ */ +/* $OpenBSD: param.h,v 1.6 2001/12/10 01:05:28 miod Exp $ */ /* $NetBSD: param.h,v 1.25 2001/05/30 12:28:51 mrg Exp $ */ /* @@ -199,8 +199,8 @@ extern int nbpg, pgofset, pgshift; * of the hardware page size. */ #define MSIZE 256 /* size of an mbuf */ -#define MCLBYTES 2048 /* enough for whole Ethernet packet */ #define MCLSHIFT 11 /* log2(MCLBYTES) */ +#define MCLBYTES (1 << MCLSHIFT) /* enough for whole Ethernet packet */ #define MCLOFSET (MCLBYTES - 1) #ifndef NMBCLUSTERS |