summaryrefslogtreecommitdiffstats
path: root/sys/sun4v
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sun4v')
-rw-r--r--sys/sun4v/include/param.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/sun4v/include/param.h b/sys/sun4v/include/param.h
index 0ac9c9b..4d7b42e 100644
--- a/sys/sun4v/include/param.h
+++ b/sys/sun4v/include/param.h
@@ -71,6 +71,11 @@
#define ALIGNBYTES _ALIGNBYTES
#define ALIGN(p) _ALIGN(p)
+#ifndef CACHE_LINE_SHIFT
+#define CACHE_LINE_SHIFT 6
+#endif
+#define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
+
#define PAGE_SHIFT_8K 13
#define PAGE_SIZE_8K (1L<<PAGE_SHIFT_8K)
#define PAGE_MASK_8K (PAGE_SIZE_8K-1)
OpenPOWER on IntegriCloud