aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/include/param.h
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2002-02-27 00:21:04 +0000
committerJake Burkholder <jake@FreeBSD.org>2002-02-27 00:21:04 +0000
commit5d60dc233a8551a64fd7ba853fea452dd8ac4850 (patch)
tree9694484fd890994f0ad4b37a22a46ed7fe961c05 /sys/sparc64/include/param.h
parent7a8ee66881c176ecfa2ba7958b8f6418975543b8 (diff)
Add a macro for shift of an integer (1 << shift == sizeof). Move the pointer
define to live alongside it. For kicks assert at compile time that they are correct. Use these instead of magic numbers.
Notes
Notes: svn path=/head/; revision=91336
Diffstat (limited to 'sys/sparc64/include/param.h')
-rw-r--r--sys/sparc64/include/param.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sparc64/include/param.h b/sys/sparc64/include/param.h
index bd0f2a486946..72cf69c28039 100644
--- a/sys/sparc64/include/param.h
+++ b/sys/sparc64/include/param.h
@@ -82,6 +82,9 @@
#define MAXCPU 1
#endif /* SMP */
+#define INT_SHIFT 2
+#define PTR_SHIFT 3
+
#define ALIGNBYTES _ALIGNBYTES
#define ALIGN(p) _ALIGN(p)