aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/page.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/page.h')
-rw-r--r--include/asm-powerpc/page.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-powerpc/page.h b/include/asm-powerpc/page.h
index 18c1e5ee81a3..94905ba2cf41 100644
--- a/include/asm-powerpc/page.h
+++ b/include/asm-powerpc/page.h
@@ -86,6 +86,12 @@
86/* to align the pointer to the (next) page boundary */ 86/* to align the pointer to the (next) page boundary */
87#define PAGE_ALIGN(addr) _ALIGN(addr, PAGE_SIZE) 87#define PAGE_ALIGN(addr) _ALIGN(addr, PAGE_SIZE)
88 88
89/*
90 * Don't compare things with KERNELBASE or PAGE_OFFSET to test for
91 * "kernelness", use is_kernel_addr() - it should do what you want.
92 */
93#define is_kernel_addr(x) ((x) >= PAGE_OFFSET)
94
89#ifndef __ASSEMBLY__ 95#ifndef __ASSEMBLY__
90 96
91#undef STRICT_MM_TYPECHECKS 97#undef STRICT_MM_TYPECHECKS