summaryrefslogtreecommitdiff
path: root/include/linux/page.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/page.h')
-rw-r--r--include/linux/page.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/page.h b/include/linux/page.h
index 8d6413ce..87be064f 100644
--- a/include/linux/page.h
+++ b/include/linux/page.h
@@ -5,6 +5,13 @@
struct page;
+#ifndef PAGE_SIZE
+
+#define PAGE_SIZE 4096UL
+#define PAGE_MASK (~(PAGE_SIZE - 1))
+
+#endif
+
#define virt_to_page(p) \
((struct page *) (((unsigned long) (p)) & PAGE_MASK))
#define offset_in_page(p) ((unsigned long) (p) & ~PAGE_MASK)