summaryrefslogtreecommitdiffstats
path: root/gcbv/gcmain.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcbv/gcmain.h')
-rw-r--r--gcbv/gcmain.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcbv/gcmain.h b/gcbv/gcmain.h
index 0aeb9ce..6d6489c 100644
--- a/gcbv/gcmain.h
+++ b/gcbv/gcmain.h
@@ -74,6 +74,9 @@ typedef uint64_t u64;
#define div64_u64(x, y) ((x) / (y))
#define div64_s64(x, y) ((x) / (y))
+#define PAGE_SHIFT 12
+#define PAGE_SIZE (1 << PAGE_SHIFT)
+#define PAGE_MASK (~(PAGE_SIZE-1))
/*******************************************************************************
* Not defined in bltsville userspace headers.