summaryrefslogtreecommitdiff
path: root/sys/amd64/include/param.h
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2009-04-19 20:19:13 +0000
committerRobert Watson <rwatson@FreeBSD.org>2009-04-19 20:19:13 +0000
commita93fa8f2bbd27fcd845e2ed0b5359e14f0e19910 (patch)
tree30f708f0df558e2567b5c3f03e96c6e13b769058 /sys/amd64/include/param.h
parent99d67eca502799fc5e63a6409033a0fabe79c64e (diff)
Notes
Diffstat (limited to 'sys/amd64/include/param.h')
-rw-r--r--sys/amd64/include/param.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/amd64/include/param.h b/sys/amd64/include/param.h
index 82e439fd4c6e..7cf1286721d8 100644
--- a/sys/amd64/include/param.h
+++ b/sys/amd64/include/param.h
@@ -89,6 +89,10 @@
#define ALIGN(p) _ALIGN(p)
#define ALIGNED_POINTER(p,t) _ALIGNED_POINTER(p,t)
+#ifndef CACHE_LINE_SHIFT
+#define CACHE_LINE_SHIFT 6
+#endif
+#define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
/* Size of the level 1 page table units */
#define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t)))