aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/include
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
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')
-rw-r--r--sys/sparc64/include/frame.h1
-rw-r--r--sys/sparc64/include/param.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/sys/sparc64/include/frame.h b/sys/sparc64/include/frame.h
index bcd1af7720c4..13eb625ad6db 100644
--- a/sys/sparc64/include/frame.h
+++ b/sys/sparc64/include/frame.h
@@ -29,7 +29,6 @@
#ifndef _MACHINE_FRAME_H_
#define _MACHINE_FRAME_H_
-#define PTR_SHIFT 3
#define RW_SHIFT 7
#define SPOFF 2047
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)