summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/include
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-12-10 01:05:29 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-12-10 01:05:29 +0000
commitba38727131150bb5ee5ae61df8d315ded024e57d (patch)
tree9bc12a58530f4544d999b4ccc9f579c6d471cd6b /sys/arch/sparc/include
parentf834d2df7820abde37b65f29b2f866a4fb4449e7 (diff)
Define MCLBYTES from MCLSHIFT, rather than providing the final value.
(sync with other arches)
Diffstat (limited to 'sys/arch/sparc/include')
-rw-r--r--sys/arch/sparc/include/param.h4
1 files changed, 2 insertions, 2 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