summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rw-r--r--usr/src/uts/common/sys/vnode.h4
-rw-r--r--usr/src/uts/common/vm/page.h6
2 files changed, 9 insertions, 1 deletions
diff --git a/usr/src/uts/common/sys/vnode.h b/usr/src/uts/common/sys/vnode.h
index e9f247ae1a..1fbcb29005 100644
--- a/usr/src/uts/common/sys/vnode.h
+++ b/usr/src/uts/common/sys/vnode.h
@@ -262,7 +262,11 @@ typedef struct vnode {
#define VNODE_ALIGN 64
/* Count of low-order 0 bits in a vnode *, based on size and alignment. */
+#if defined(_LP64)
#define VNODE_ALIGN_LOG2 8
+#else
+#define VNODE_ALIGN_LOG2 7
+#endif
/*
* vnode flags.
diff --git a/usr/src/uts/common/vm/page.h b/usr/src/uts/common/vm/page.h
index 7fa4af9a4a..8299d4ca1b 100644
--- a/usr/src/uts/common/vm/page.h
+++ b/usr/src/uts/common/vm/page.h
@@ -113,9 +113,13 @@ typedef int selock_t;
#define PAGE_LLOCK_SIZE (1 << PAGE_LLOCK_SHIFT)
/*
- * The number of low order 0 bits in the page_t address.
+ * The number of low order 0 (or less variable) bits in the page_t address.
*/
+#if defined(__sparc)
#define PP_SHIFT 7
+#else
+#define PP_SHIFT 6
+#endif
/*
* pp may be the root of a large page, and many low order bits will be 0.